From a088d64b804cb1dac9ba176e147be84d47ab383e Mon Sep 17 00:00:00 2001 From: Pk11 Date: Wed, 12 Jan 2022 21:05:23 -0600 Subject: [PATCH] Fix failing to read flashcard if RAM drive removed (#154) --- arm9/source/driveMenu.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arm9/source/driveMenu.cpp b/arm9/source/driveMenu.cpp index 8fcd66a..399f8f2 100644 --- a/arm9/source/driveMenu.cpp +++ b/arm9/source/driveMenu.cpp @@ -283,7 +283,7 @@ void driveMenu (void) { if (*(u8*)(0x080000B2) != gbaFixedValue) { break; } - if(driveRemoved(Drive::ramDrive)) { + if(ramdriveMounted && driveRemoved(Drive::ramDrive)) { currentDrive = Drive::ramDrive; chdir("ram:/"); ramdriveUnmount();