mirror of https://github.com/PCSX2/pcsx2.git
VMManager: Don't rescan symbols when swapping discs
The ELF isn't changing.
This commit is contained in:
parent
61253d8201
commit
c4e623eec2
|
@ -896,6 +896,10 @@ void VMManager::UpdateRunningGame(bool resetting, bool game_starting, bool swapp
|
|||
// Check this here, for two cases: dynarec on, and when enable cheats is set per-game.
|
||||
if (s_patches_crc != s_game_crc)
|
||||
ReloadPatches(game_starting, false);
|
||||
|
||||
MIPSAnalyst::ScanForFunctions(R5900SymbolMap, ElfTextRange.first, ElfTextRange.first + ElfTextRange.second, true);
|
||||
R5900SymbolMap.UpdateActiveSymbols();
|
||||
R3000SymbolMap.UpdateActiveSymbols();
|
||||
}
|
||||
|
||||
// Per-game ini enabling of hardcore mode. We need to re-enforce the settings if so.
|
||||
|
@ -910,10 +914,6 @@ void VMManager::UpdateRunningGame(bool resetting, bool game_starting, bool swapp
|
|||
UpdateDiscordPresence(Achievements::GetRichPresenceString());
|
||||
|
||||
Host::OnGameChanged(s_disc_path, s_elf_override, s_game_serial, s_game_name, s_game_crc);
|
||||
|
||||
MIPSAnalyst::ScanForFunctions(R5900SymbolMap, ElfTextRange.first, ElfTextRange.first + ElfTextRange.second, true);
|
||||
R5900SymbolMap.UpdateActiveSymbols();
|
||||
R3000SymbolMap.UpdateActiveSymbols();
|
||||
}
|
||||
|
||||
void VMManager::ReloadPatches(bool verbose, bool show_messages_when_disabled)
|
||||
|
|
Loading…
Reference in New Issue