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

Function xSG_ld_flipload

src/SB/Core/x/xsavegame.cpp:1359–1391  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1357}
1358
1359S32 xSG_ld_flipload(st_XSAVEGAME_DATA* xsgdata)
1360{
1361 S32 result = 1;
1362 S32 rc;
1363
1364 for (S32 i = 0; i < xsgdata->stkcnt; i++)
1365 {
1366 st_XSAVEGAME_CLIENT* clt = &xsgdata->cltstk[i];
1367 if (clt->cltload != NULL && clt->blokact != 0 && clt->blokpos != NULL)
1368 {
1369 xUtil_idtag2string(clt->idtag, 0);
1370
1371 rc = clt->cltload(clt->cltdata, xsgdata, (st_XSAVEGAME_READCONTEXT*)clt, clt->idtag,
1372 clt->blokact);
1373 if (rc == 0)
1374 {
1375 xUtil_idtag2string(clt->idtag, 0);
1376 result = 0;
1377 }
1378 }
1379 else
1380 {
1381 xUtil_idtag2string(clt->idtag, 0);
1382 }
1383
1384 if (result == 0)
1385 {
1386 break;
1387 }
1388 }
1389
1390 return result;
1391}
1392
1393XSGAutoData* xSGAutoSave_GetCache()
1394{

Callers 1

xSGWrapupFunction · 0.70

Calls 1

xUtil_idtag2stringFunction · 0.70

Tested by

no test coverage detected