systemsp: initialize media name and default eeprom

Fix failure to load a systemsp rom game after running a compactflash
game.
Fix error 05 if selecting the wrong region then switching to Japan.
This commit is contained in:
Flyinghead 2023-09-19 16:13:27 +02:00
parent c63f1a9997
commit 869ddb643d
2 changed files with 3 additions and 2 deletions

View File

@ -757,6 +757,7 @@ void naomi_cart_Close()
CurrentCartridge = nullptr;
NaomiGameInputs = nullptr;
bios_loaded = false;
naomi_default_eeprom = nullptr;
}
void naomi_cart_serialize(Serializer& ser)

View File

@ -182,8 +182,8 @@ private:
}
int schedId;
const char *mediaName;
const char *parentName;
const char *mediaName = nullptr;
const char *parentName = nullptr;
FILE *chdFile = nullptr;
chd_file *chd = nullptr;
u32 hunkbytes = 0;