Skip to content

Commit a79970f

Browse files
committed
memcard progress
1 parent 12c549f commit a79970f

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

decompile/General/MEMCARD/MEMCARD_21_Format.c

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
uint8_t DECOMP_MEMCARD_Format(int slotIdx)
44
{
55
if (sdata->memcard_stage != MC_STAGE_IDLE)
6-
return 1;
6+
return MC_RETURN_TIMEOUT;
77

88
if (!format(MEMCARD_StringInit(slotIdx, 0)))
9-
return 1;
9+
return MC_RETURN_TIMEOUT;
1010

1111
// discard any previous events
1212
// submit a load to make sure format worked,
@@ -17,6 +17,8 @@ uint8_t DECOMP_MEMCARD_Format(int slotIdx)
1717
sdata->memcard_stage = MC_STAGE_NEWCARD;
1818
sdata->memcard_remainingAttempts = 8;
1919
sdata->memcardSlot = slotIdx;
20-
21-
return 7;
20+
21+
// The "format" has started, the result will be found
22+
// the next time we wait for an event result
23+
return MC_RETURN_PENDING;
2224
}

0 commit comments

Comments
 (0)