Remove DSi mode check when mounting SD

This commit is contained in:
RocketRobz 2020-07-14 17:52:22 -06:00
parent dd94cd5e77
commit 1223111a98
2 changed files with 5 additions and 3 deletions

View File

@ -169,7 +169,7 @@ void dm_drawBottomScreen(void) {
printf ("\n"); printf ("\n");
printf (IMAGETEXT); printf (IMAGETEXT);
} }
if (isDSiMode() && sdMountedDone) { if (sdMountedDone) {
if (isRegularDS || sdMounted) { if (isRegularDS || sdMounted) {
printf ("\n"); printf ("\n");
printf (sdMounted ? "R+B - Unmount SD card" : "R+B - Remount SD card"); printf (sdMounted ? "R+B - Unmount SD card" : "R+B - Remount SD card");
@ -347,7 +347,7 @@ void driveMenu (void) {
if (dmCursorPosition > dmMaxCursors) dmCursorPosition = 0; // Wrap around to top of list if (dmCursorPosition > dmMaxCursors) dmCursorPosition = 0; // Wrap around to top of list
if (pressed & KEY_A) { if (pressed & KEY_A) {
if (dmAssignedOp[dmCursorPosition] == 0 && isDSiMode() && sdMounted) { if (dmAssignedOp[dmCursorPosition] == 0 && sdMounted) {
dmTextPrinted = false; dmTextPrinted = false;
currentDrive = 0; currentDrive = 0;
chdir("sd:/"); chdir("sd:/");

View File

@ -153,7 +153,9 @@ TWL_CODE void nandUnmount(void) {
} }
bool sdMount(void) { bool sdMount(void) {
fatMountSimple("sd", get_io_dsisd()); extern const DISC_INTERFACE __io_dsisd;
fatMountSimple("sd", &__io_dsisd);
if (sdFound()) { if (sdFound()) {
sdMountedDone = true; sdMountedDone = true;
fatGetVolumeLabel("sd", sdLabel); fatGetVolumeLabel("sd", sdLabel);