make sure Key1 data is loaded right even if the BIOSes aren't loaded at the time

This commit is contained in:
Arisotura
2022-01-04 11:27:54 +01:00
parent b0a22e4ce9
commit 5c924c9f01
2 changed files with 19 additions and 5 deletions

View File

@ -747,6 +747,9 @@ void DoSavestate(Savestate* file)
//void LoadROMCommon(const char *sram)
bool LoadROM(const u8* romdata, u32 romlen)
{
if (CartInserted)
EjectCart();
CartROMSize = 0x200;
while (CartROMSize < romlen)
CartROMSize <<= 1;