mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-23 06:10:03 -06:00
Reset GBA cartridge state when loading a new ROM
This commit is contained in:
@ -156,6 +156,11 @@ bool LoadROM(const char* path, const char* sram)
|
||||
return false;
|
||||
}
|
||||
|
||||
if (CartInserted)
|
||||
{
|
||||
Reset();
|
||||
}
|
||||
|
||||
fseek(f, 0, SEEK_END);
|
||||
u32 len = (u32)ftell(f);
|
||||
|
||||
|
Reference in New Issue
Block a user