Make the workqueue slightly safer. Put g_gameInfoCache on the heap.

Cherry-picked from #8592
This commit is contained in:
Henrik Rydgard committed 2016-02-28 12:39:47 +01:00
1 parent 5f761c346b
commit da1a04be8d
18 files changed
+73 -64

No files matched your search

+2 -2
View File
@@ -89,7 +89,7 @@ void EmuScreen::bootGame(const std::string &filename) {
}
//pre-emptive loading of game specific config if possible, to get all the settings
GameInfo *info = g_gameInfoCache.GetInfo(NULL, filename, 0);
GameInfo *info = g_gameInfoCache->GetInfo(NULL, filename, 0);
if (info && !info->id.empty()) {
g_Config.loadGameConfig(info->id);
}
@@ -139,7 +139,7 @@ void EmuScreen::bootComplete() {
host->BootDone();
host->UpdateDisassembly();
g_gameInfoCache.FlushBGs();
g_gameInfoCache->FlushBGs();
NOTICE_LOG(BOOT, "Loading %s...", PSP_CoreParameter().fileToStart.c_str());
autoLoad();