MCPcopy Create free account
hub / github.com/bfbbdecomp/bfbb / XSER_get_client

Function XSER_get_client

src/SB/Core/x/xserializer.cpp:413–431  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

411}
412
413static st_SERIAL_CLIENTINFO* XSER_get_client(U32 idtag)
414{
415 st_XSERIAL_DATA_PRIV* xsd = &g_xserdata;
416 st_SERIAL_CLIENTINFO* clt = xsd->cltnext;
417 S32 idx = XOrdLookup(&xsd->cltlist, (void*)idtag, xSER_ord_test);
418
419 if (idx < 0)
420 {
421 clt->idtag = idtag;
422 clt++;
423 XOrdInsert(&xsd->cltlist, clt, xSER_ord_compare);
424 }
425 else
426 {
427 clt = (st_SERIAL_CLIENTINFO*)&xsd->cltlist.list[idx];
428 }
429
430 return clt;
431}
432
433S32 xSerial_svgame_register(st_XSAVEGAME_DATA* sgctxt, en_SAVEGAME_MODE mode)
434{

Callers 3

prepareMethod · 0.70
xSER_xsgclt_svproc_cltFunction · 0.70
xSER_xsgclt_ldproc_cltFunction · 0.70

Calls 2

XOrdLookupFunction · 0.70
XOrdInsertFunction · 0.70

Tested by

no test coverage detected