We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 12c549f commit a79970fCopy full SHA for a79970f
decompile/General/MEMCARD/MEMCARD_21_Format.c
@@ -3,10 +3,10 @@
3
uint8_t DECOMP_MEMCARD_Format(int slotIdx)
4
{
5
if (sdata->memcard_stage != MC_STAGE_IDLE)
6
- return 1;
+ return MC_RETURN_TIMEOUT;
7
8
if (!format(MEMCARD_StringInit(slotIdx, 0)))
9
10
11
// discard any previous events
12
// submit a load to make sure format worked,
@@ -17,6 +17,8 @@ uint8_t DECOMP_MEMCARD_Format(int slotIdx)
17
sdata->memcard_stage = MC_STAGE_NEWCARD;
18
sdata->memcard_remainingAttempts = 8;
19
sdata->memcardSlot = slotIdx;
20
-
21
- return 7;
+
+ // The "format" has started, the result will be found
22
+ // the next time we wait for an event result
23
+ return MC_RETURN_PENDING;
24
}
0 commit comments