mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-24 14:49:53 -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;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (CartInserted)
|
||||||
|
{
|
||||||
|
Reset();
|
||||||
|
}
|
||||||
|
|
||||||
fseek(f, 0, SEEK_END);
|
fseek(f, 0, SEEK_END);
|
||||||
u32 len = (u32)ftell(f);
|
u32 len = (u32)ftell(f);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user