Don't update saveslot info if VM isn't running yet

This commit is contained in:
Christian Kenny 2021-09-17 15:22:25 -04:00 committed by refractionpcsx2
parent ae7b84a85f
commit 24d47cb10b
1 changed files with 5 additions and 0 deletions

View File

@ -55,6 +55,11 @@ static void _SaveLoadStuff(bool enabled)
// Run though all the slots. Update if they need updating or the crc changed.
for (Saveslot &slot : saveslot_cache)
{
if (!SysHasValidState())
{
return;
}
// We need to reload the file information if the crc or serial # changed.
// Invalidate slot cache when using full boot (g_GameLoading) otherwise it won't see the new folder path
if ((g_GameLoading || slot.crc != ElfCRC) || (slot.serialName != DiscSerial))