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

Function zSaveLoad_CardCheckSlotEmpty_hasGame_doCheck

src/SB/Game/zSaveLoad.cpp:987–1010  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

985}
986
987S32 zSaveLoad_CardCheckSlotEmpty_hasGame_doCheck(st_XSAVEGAME_DATA* xsgdata, S32 cardNumber,
988 S32 gameNumber)
989{
990 S32 rc;
991
992 if (xSGTgtIsFormat(xsgdata, cardNumber, 0) <= 0)
993 {
994 rc = -1;
995 }
996 else
997 {
998 xSGTgtSelect(xsgdata, cardNumber);
999 rc = xSGGameIsEmpty(xsgdata, gameNumber);
1000 if (rc != 0)
1001 {
1002 rc = 0;
1003 }
1004 else if (rc == 0)
1005 {
1006 rc = 1;
1007 }
1008 }
1009 return rc;
1010}
1011
1012S32 zSaveLoad_CardCheckSlotEmpty_hasGame(S32 cardNumber, S32 gameNumber)
1013{

Callers 1

Calls 3

xSGGameIsEmptyFunction · 0.85
xSGTgtIsFormatFunction · 0.50
xSGTgtSelectFunction · 0.50

Tested by

no test coverage detected