Fix error when dumping GBA ROM for a second time

This commit is contained in:
sanni 2023-02-16 11:32:55 +01:00
parent 029538463a
commit 58e8cc1a3b

View File

@ -56,7 +56,8 @@ void gbaMenu() {
// wait for user choice to come back from the question box menu
cartSize = romOptionsGBASize[GBARomMenu];
}
cartSize *= 0x100000;
if (cartSize < 128) // Don't multiply cartSize on second dump
cartSize *= 0x100000;
display_Clear();
// Change working dir to root
sd.chdir("/");