System: Fix title after loading state for EXE-boot

This commit is contained in:
Stenzek 2024-05-31 21:08:45 +10:00
parent e70f155054
commit c637e2b337
No known key found for this signature in database

View File

@ -2564,8 +2564,14 @@ bool System::LoadStateFromStream(ByteStream* state, Error* error, bool update_di
} }
} }
} }
else
{
// Skip updating media if there is none, and none in the state. That way we don't wipe out EXE boot.
ignore_media = !CDROM::HasMedia();
}
UpdateRunningGame(media_filename.c_str(), media.get(), false); if (!ignore_media)
UpdateRunningGame(media_filename.c_str(), media.get(), false);
if (media && header.version >= 51) if (media && header.version >= 51)
{ {