VMManager: Force reloading of LastELF on state load

This commit is contained in:
Connor McLaughlin 2022-06-04 23:47:56 +10:00 committed by refractionpcsx2
parent 71935e7099
commit 624e5ae633
1 changed files with 7 additions and 0 deletions

View File

@ -1049,6 +1049,13 @@ bool VMManager::DoLoadState(const char* filename)
{
Host::OnSaveStateLoading(filename);
SaveState_UnzipFromDisk(filename);
// HACK: LastELF isn't in the save state...
if (!s_elf_override.empty())
cdvdReloadElfInfo(fmt::format("host:{}", s_elf_override));
else
cdvdReloadElfInfo();
UpdateRunningGame(false, false);
Host::OnSaveStateLoaded(filename, true);
return true;