Fix failing to read flashcard if RAM drive removed (#154)

This commit is contained in:
Pk11 2022-01-12 21:05:23 -06:00 committed by GitHub
parent 9be421880f
commit a088d64b80
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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();