PPCSymbolDB: Move loading map on boot logic from boot.cpp into PPCSymbolDB, as it will be needing a mutex.

Cleanup loading code and reduce amount of signals.

On boot. allow previously loaded map to be kept, if its filename matches. Useful for restarting a game with a large symbol map.
This commit is contained in:
TryTwo
2025-06-17 22:25:13 -07:00
parent 5836ca133c
commit fe121e4c6e
8 changed files with 49 additions and 46 deletions

View File

@ -271,12 +271,9 @@ void SConfig::OnTitleDirectlyBooted(const Core::CPUThreadGuard& guard)
return;
auto& ppc_symbol_db = system.GetPPCSymbolDB();
if (!ppc_symbol_db.IsEmpty())
{
ppc_symbol_db.Clear();
if (ppc_symbol_db.LoadMapOnBoot(guard))
Host_PPCSymbolsChanged();
}
CBoot::LoadMapFromFilename(guard, ppc_symbol_db);
HLE::Reload(system);
PatchEngine::Reload(system);