Core: Reset game CRC when rebooting. Avoids previous games patches being loaded.

This commit is contained in:
refractionpcsx2 2021-07-05 15:43:57 +01:00
parent 1630805fd8
commit 627f216bf7
1 changed files with 3 additions and 0 deletions

View File

@ -428,6 +428,9 @@ static void _ApplySettings(const Pcsx2Config& src, Pcsx2Config& fixup)
bool ingame = (ElfCRC && (g_GameLoading || g_GameStarted)); bool ingame = (ElfCRC && (g_GameLoading || g_GameStarted));
if (ingame) if (ingame)
GameInfo::gameCRC.Printf(L"%8.8x", ElfCRC); GameInfo::gameCRC.Printf(L"%8.8x", ElfCRC);
else
GameInfo::gameCRC = L""; // Needs to be reset when rebooting otherwise previously loaded patches may load
if (ingame && !DiscSerial.IsEmpty()) if (ingame && !DiscSerial.IsEmpty())
GameInfo::gameSerial = L" [" + DiscSerial + L"]"; GameInfo::gameSerial = L" [" + DiscSerial + L"]";