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

Function zSaveLoad_CardCheckFormatted

src/SB/Game/zSaveLoad.cpp:1082–1112  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1080}
1081
1082S32 zSaveLoad_CardCheckFormatted(S32 cardNumber, S32 mode)
1083{
1084 S32 result;
1085 while (result = zSaveLoad_CardCheckFormattedSingle(cardNumber), result != 1)
1086 {
1087 badCard = 1;
1088
1089 result = zSaveLoad_CardCheckFormattedSingle(cardNumber);
1090 if (result == -1)
1091 {
1092 return -1;
1093 }
1094
1095 if (result == 7)
1096 {
1097 return 7;
1098 }
1099
1100 result = zSaveLoad_CardPromptFormat(mode);
1101 if (result == 2 || result == 4)
1102 {
1103 return 2;
1104 }
1105
1106 sAccessType = 3;
1107 S32 tmp = format(cardNumber, mode);
1108 sAccessType = 2;
1109 return tmp != 1 ? tmp : 11;
1110 }
1111 return 1;
1112}
1113
1114S32 zSaveLoad_CardCheckValid(S32 cardNumber, S32 mode)
1115{

Callers 2

zSaveLoad_CardPickFunction · 0.70
zSaveLoad_GameSelectFunction · 0.70

Calls 3

formatFunction · 0.70

Tested by

no test coverage detected