Merge pull request #2537 from degasus/master
Config: Add SyncOnSkipIdle GameIni option
This commit is contained in:
commit
e987383f6d
|
@ -47,7 +47,7 @@ namespace BootManager
|
|||
// Apply fire liberally
|
||||
struct ConfigCache
|
||||
{
|
||||
bool valid, bCPUThread, bSkipIdle, bFPRF, bMMU, bDCBZOFF, m_EnableJIT, bDSPThread,
|
||||
bool valid, bCPUThread, bSkipIdle, bSyncGPUOnSkipIdleHack, bFPRF, bMMU, bDCBZOFF, m_EnableJIT, bDSPThread,
|
||||
bSyncGPU, bFastDiscSpeed, bDSPHLE, bHLE_BS2, bProgressive;
|
||||
int iCPUCore, Volume;
|
||||
int iWiimoteSource[MAX_BBMOTES];
|
||||
|
@ -103,6 +103,7 @@ bool BootCore(const std::string& _rFilename)
|
|||
config_cache.valid = true;
|
||||
config_cache.bCPUThread = StartUp.bCPUThread;
|
||||
config_cache.bSkipIdle = StartUp.bSkipIdle;
|
||||
config_cache.bSyncGPUOnSkipIdleHack = StartUp.bSyncGPUOnSkipIdleHack;
|
||||
config_cache.iCPUCore = StartUp.iCPUCore;
|
||||
config_cache.bFPRF = StartUp.bFPRF;
|
||||
config_cache.bMMU = StartUp.bMMU;
|
||||
|
@ -143,6 +144,7 @@ bool BootCore(const std::string& _rFilename)
|
|||
|
||||
core_section->Get("CPUThread", &StartUp.bCPUThread, StartUp.bCPUThread);
|
||||
core_section->Get("SkipIdle", &StartUp.bSkipIdle, StartUp.bSkipIdle);
|
||||
core_section->Get("SyncOnSkipIdle", &StartUp.bSyncGPUOnSkipIdleHack, StartUp.bSyncGPUOnSkipIdleHack);
|
||||
core_section->Get("FPRF", &StartUp.bFPRF, StartUp.bFPRF);
|
||||
core_section->Get("MMU", &StartUp.bMMU, StartUp.bMMU);
|
||||
core_section->Get("DCBZ", &StartUp.bDCBZOFF, StartUp.bDCBZOFF);
|
||||
|
@ -268,6 +270,7 @@ void Stop()
|
|||
config_cache.valid = false;
|
||||
StartUp.bCPUThread = config_cache.bCPUThread;
|
||||
StartUp.bSkipIdle = config_cache.bSkipIdle;
|
||||
StartUp.bSyncGPUOnSkipIdleHack = config_cache.bSyncGPUOnSkipIdleHack;
|
||||
StartUp.iCPUCore = config_cache.iCPUCore;
|
||||
StartUp.bFPRF = config_cache.bFPRF;
|
||||
StartUp.bMMU = config_cache.bMMU;
|
||||
|
|
Loading…
Reference in New Issue