| 1200 | } |
| 1201 | |
| 1202 | S32 zSaveLoad_CardCheckSlotOverwrite(S32 cardNumber, S32 gameNumber) |
| 1203 | { |
| 1204 | // TODO: Figure out what this number means. |
| 1205 | S32 iVar1 = zSaveLoad_CardCheckSlotOverwrite_Free(cardNumber, gameNumber); |
| 1206 | // NOTE (Square): I'm not sure that this is supposed to be a loop. It doesn't make |
| 1207 | // sense to just break at the end and the condition feels like it should be an early return |
| 1208 | // but this matches and I don't know how else to generate the `b` instruction at 0x18 |
| 1209 | while (iVar1 != 1 || iVar1 == 10) |
| 1210 | { |
| 1211 | if (iVar1 == -1 || iVar1 == 10) |
| 1212 | { |
| 1213 | return iVar1; |
| 1214 | } |
| 1215 | |
| 1216 | if (IsValidName(zSaveLoadGameTable[gameNumber].label)) |
| 1217 | { |
| 1218 | iVar1 = zSaveLoad_CardPromptOverwrite(); |
| 1219 | } |
| 1220 | else |
| 1221 | { |
| 1222 | iVar1 = zSaveLoad_CardPromptOverwriteDamaged(); |
| 1223 | } |
| 1224 | |
| 1225 | if (iVar1 == 5) |
| 1226 | { |
| 1227 | return iVar1; |
| 1228 | } |
| 1229 | |
| 1230 | if (iVar1 == 2 || iVar1 == 4) |
| 1231 | { |
| 1232 | return 2; |
| 1233 | } |
| 1234 | break; |
| 1235 | } |
| 1236 | |
| 1237 | return 1; |
| 1238 | } |
| 1239 | |
| 1240 | S32 zSaveLoad_CardPick(S32 mode) |
| 1241 | { |
no test coverage detected