Skip to content

Commit

Permalink
Add back option to remount the flashcard's sd (#249)
Browse files Browse the repository at this point in the history
Only enabled in the case of slot2 carts
  • Loading branch information
edo9300 authored Jan 12, 2025
1 parent 4834ec0 commit 660e42c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions arm9/source/driveMenu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,8 @@ void dm_drawBottomScreen(void) {
font->print(firstCol, row--, false, sdMounted ? STR_UNMOUNT_SDCARD : STR_REMOUNT_SDCARD, alignStart);
} else if(flashcardMounted) {
font->print(firstCol, row--, false, STR_UNMOUNT_FLASHCARD, alignStart);
} else if (io_dldi_data->ioInterface.features & FEATURE_SLOT_GBA) {
font->print(firstCol, row--, false, STR_REMOUNT_FLASHCARD, alignStart);
}
if ((sdMounted && driveWritable(Drive::sdCard)) || (flashcardMounted && driveWritable(Drive::flashcard))) {
font->print(firstCol, row--, false, STR_SCREENSHOTTEXT, alignStart);
Expand Down Expand Up @@ -424,6 +426,8 @@ void driveMenu (void) {
currentDrive = Drive::flashcard;
chdir("fat:/");
flashcardUnmount();
} else if (io_dldi_data->ioInterface.features & FEATURE_SLOT_GBA) {
flashcardMounted = flashcardMount();
}
}
}
Expand Down
1 change: 1 addition & 0 deletions arm9/source/language.inl
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ STRING(FAT_IMAGE, "(Image FAT, %s)")
STRING(UNMOUNT_SDCARD, "\\R+\\B - Unmount SD card")
STRING(REMOUNT_SDCARD, "\\R+\\B - Remount SD card")
STRING(UNMOUNT_FLASHCARD, "\\R+\\B - Unmount Flashcard")
STRING(REMOUNT_FLASHCARD, "\\R+\\B - Remount Flashcard")
STRING(START_START_MENU, "START - START menu")
STRING(POWERTEXT_DS, "POWER - Poweroff")
STRING(POWERTEXT, "POWER - Reboot/[+held] Poweroff")
Expand Down
1 change: 1 addition & 0 deletions nitrofiles/languages/en-US/language.ini
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ FAT_IMAGE=(Image FAT, %s)
UNMOUNT_SDCARD=\R+\B - Unmount SD card
REMOUNT_SDCARD=\R+\B - Remount SD card
UNMOUNT_FLASHCARD=\R+\B - Unmount Flashcard
REMOUNT_FLASHCARD=\R+\B - Remount Flashcard
START_START_MENU=START - START menu
POWERTEXT_DS=POWER - Poweroff
POWERTEXT=POWER - Reboot/[+held] Poweroff
Expand Down

0 comments on commit 660e42c

Please sign in to comment.