Merge pull request #8064 from JosJuice/notify-host-symbols-clear

Call Host_NotifyMapLoaded when clearing g_symbolDB
This commit is contained in:
Léo Lam
2019-05-03 11:47:26 +02:00
committed by GitHub
5 changed files with 24 additions and 3 deletions

View File

@ -35,6 +35,7 @@
#include "Core/HLE/HLE.h"
#include "Core/HW/DVD/DVDInterface.h"
#include "Core/HW/SI/SI.h"
#include "Core/Host.h"
#include "Core/IOS/ES/ES.h"
#include "Core/IOS/ES/Formats.h"
#include "Core/PatchEngine.h"
@ -731,7 +732,11 @@ void SConfig::SetRunningGameMetadata(const std::string& game_id, const std::stri
if (Core::IsRunning())
{
// TODO: have a callback mechanism for title changes?
g_symbolDB.Clear();
if (!g_symbolDB.IsEmpty())
{
g_symbolDB.Clear();
Host_NotifyMapLoaded();
}
CBoot::LoadMapFromFilename();
HLE::Reload();
PatchEngine::Reload();