Merge pull request #170 from RachelBryk/save-skip-bios

Save bHLE_BS2 to config cache before it can be changed while booting.
This commit is contained in:
Pierre Bourdon 2014-03-17 01:06:46 +01:00
commit 4a906fdf7b
1 changed files with 3 additions and 1 deletions

View File

@ -76,6 +76,9 @@ bool BootCore(const std::string& _rFilename)
StartUp.hInstance = Host_GetInstance();
// This is saved seperately from everything because it can be changed in SConfig::AutoSetup()
config_cache.bHLE_BS2 = StartUp.bHLE_BS2;
// If for example the ISO file is bad we return here
if (!StartUp.AutoSetup(SCoreStartupParameter::BOOT_DEFAULT))
return false;
@ -108,7 +111,6 @@ bool BootCore(const std::string& _rFilename)
config_cache.bMergeBlocks = StartUp.bMergeBlocks;
config_cache.bDSPHLE = StartUp.bDSPHLE;
config_cache.strBackend = StartUp.m_strVideoBackend;
config_cache.bHLE_BS2 = StartUp.bHLE_BS2;
config_cache.m_EnableJIT = SConfig::GetInstance().m_DSPEnableJIT;
config_cache.bDSPThread = StartUp.bDSPThread;
config_cache.Volume = SConfig::GetInstance().m_Volume;