Add a setting to autosave the symbol map.

And move it into system, needs to be after the coreParameter too.
This commit is contained in:
Unknown W. Brackets 2013-03-30 21:42:43 -07:00
parent 8155657ea3
commit 8f911a0ebe
8 changed files with 26 additions and 4 deletions

View file

@ -76,6 +76,8 @@ bool PSP_Init(const CoreParameter &coreParam, std::string *error_string)
mipsr4k.Reset();
mipsr4k.pc = 0;
host->AttemptLoadSymbolMap();
if (coreParameter.enableSound)
{
mixer = new PSPMixer();
@ -126,6 +128,9 @@ void PSP_Shutdown()
CoreTiming::Shutdown();
if (g_Config.bAutoSaveSymbolMap)
host->SaveSymbolMap();
if (coreParameter.enableSound)
{
host->ShutdownSound();