mirror of
https://github.com/rvtr/GodMode9i.git
synced 2025-11-02 00:11:07 -04:00
bug fixes
This commit is contained in:
parent
8e07f18eea
commit
06f46aed76
@ -43,8 +43,14 @@ void driveMenu (void) {
|
||||
|
||||
while (true) {
|
||||
if (isDSiMode() && !pressed) {
|
||||
if (REG_SCFG_MC == 0x11) {
|
||||
if (flashcardMounted) {
|
||||
flashcardUnmount();
|
||||
}
|
||||
} else {
|
||||
flashcardMounted = flashcardMount(); // Try to mount flashcard
|
||||
}
|
||||
}
|
||||
|
||||
if (!dmTextPrinted) {
|
||||
consoleInit(NULL, 1, BgType_Text4bpp, BgSize_T_256x256, 15, 0, false, true);
|
||||
@ -88,7 +94,7 @@ void driveMenu (void) {
|
||||
printf ("\x1b[3;1H");
|
||||
}
|
||||
printf ("[fat:] GAMECART");
|
||||
if (!flashcardFound()) {
|
||||
if (!flashcardMounted) {
|
||||
iprintf ("\x1b[%i;29H", 2+isDSiMode());
|
||||
printf ("[x]");
|
||||
}
|
||||
@ -111,6 +117,7 @@ void driveMenu (void) {
|
||||
swiWaitForVBlank();
|
||||
|
||||
if (REG_SCFG_MC != dm_SCFG_MC) {
|
||||
dmTextPrinted = false;
|
||||
break;
|
||||
}
|
||||
} while (!(pressed & KEY_UP) && !(pressed & KEY_DOWN) && !(pressed & KEY_A) && !(held & KEY_R));
|
||||
|
||||
@ -107,6 +107,8 @@ void ShowGameInfo(const char gameid[], const char gamename[]) {
|
||||
bool flashcardMount(void) {
|
||||
if (flashcardFound()) {
|
||||
return true;
|
||||
} else if (!isDSiMode()) {
|
||||
return fatMountSimple("fat", &io_dldi_data->ioInterface);
|
||||
} else if (REG_SCFG_MC != 0x11) {
|
||||
// Reset Slot-1 to allow reading title name and ID
|
||||
sysSetCardOwner (BUS_OWNER_ARM9);
|
||||
@ -147,8 +149,8 @@ bool flashcardMount(void) {
|
||||
io_dldi_data = dldiLoadFromBin(ak2_sd_bin);
|
||||
return fatMountSimple("fat", &io_dldi_data->ioInterface);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
void flashcardUnmount(void) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user