mirror of
https://github.com/d0k3/GodMode9.git
synced 2025-06-26 13:42:47 +00:00
Clear panedata when unmounting SD card
... & check mount state when mounting image FATs
This commit is contained in:
parent
ec817ebb04
commit
b1732eb673
@ -137,6 +137,8 @@ DSTATUS disk_initialize (
|
|||||||
} else if (pdrv < 7) {
|
} else if (pdrv < 7) {
|
||||||
nand_type_emu = CheckNandType(NAND_EMUNAND);
|
nand_type_emu = CheckNandType(NAND_EMUNAND);
|
||||||
} else if (pdrv < 10) {
|
} else if (pdrv < 10) {
|
||||||
|
if (!GetMountState())
|
||||||
|
return RES_PARERR;
|
||||||
nand_type_img = CheckNandType(NAND_IMGNAND);
|
nand_type_img = CheckNandType(NAND_IMGNAND);
|
||||||
}
|
}
|
||||||
return RES_OK;
|
return RES_OK;
|
||||||
|
@ -265,6 +265,7 @@ u32 GodMode() {
|
|||||||
DeinitExtFS();
|
DeinitExtFS();
|
||||||
DeinitSDCardFS();
|
DeinitSDCardFS();
|
||||||
clipboard->n_entries = 0;
|
clipboard->n_entries = 0;
|
||||||
|
memset(panedata, 0x00, N_PANES * sizeof(PaneData));
|
||||||
ShowPrompt(false, "SD card unmounted, you can eject now.\nPut it back in before you press <A>.");
|
ShowPrompt(false, "SD card unmounted, you can eject now.\nPut it back in before you press <A>.");
|
||||||
while (!InitSDCardFS()) {
|
while (!InitSDCardFS()) {
|
||||||
if (!ShowPrompt(true, "Reinitialising SD card failed! Retry?"))
|
if (!ShowPrompt(true, "Reinitialising SD card failed! Retry?"))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user