VMManager: Don't rescan symbols when swapping discs

The ELF isn't changing.
This commit is contained in:
Stenzek authored and refractionpcsx2 committed 2023-05-16 12:58:19 +01:00
1 parent 61253d8201
commit c4e623eec2
1 file changed
+4 -4
+4 -4
View File
@@ -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)