mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 14:19:46 -06:00
BootManager: Vertically align where sensible to do so
This commit is contained in:
@ -81,14 +81,14 @@ private:
|
||||
int iSelectedLanguage;
|
||||
int iCPUCore;
|
||||
int Volume;
|
||||
std::array<int, MAX_BBMOTES> iWiimoteSource;
|
||||
std::array<SIDevices, MAX_SI_CHANNELS> Pads;
|
||||
std::array<TEXIDevices, MAX_EXI_CHANNELS> m_EXIDevice;
|
||||
unsigned int frameSkip;
|
||||
float m_EmulationSpeed;
|
||||
std::string strBackend;
|
||||
std::string sBackend;
|
||||
std::string m_strGPUDeterminismMode;
|
||||
std::array<int, MAX_BBMOTES> iWiimoteSource;
|
||||
std::array<SIDevices, MAX_SI_CHANNELS> Pads;
|
||||
std::array<TEXIDevices, MAX_EXI_CHANNELS> m_EXIDevice;
|
||||
};
|
||||
|
||||
void ConfigCache::SaveConfig(const SConfig& config)
|
||||
@ -112,24 +112,22 @@ void ConfigCache::SaveConfig(const SConfig& config)
|
||||
iSelectedLanguage = config.SelectedLanguage;
|
||||
iCPUCore = config.iCPUCore;
|
||||
Volume = config.m_Volume;
|
||||
m_EmulationSpeed = config.m_EmulationSpeed;
|
||||
frameSkip = config.m_FrameSkip;
|
||||
strBackend = config.m_strVideoBackend;
|
||||
sBackend = config.sBackend;
|
||||
m_strGPUDeterminismMode = config.m_strGPUDeterminismMode;
|
||||
|
||||
std::copy(std::begin(g_wiimote_sources), std::end(g_wiimote_sources), std::begin(iWiimoteSource));
|
||||
std::copy(std::begin(config.m_SIDevice), std::end(config.m_SIDevice), std::begin(Pads));
|
||||
std::copy(std::begin(config.m_EXIDevice), std::end(config.m_EXIDevice), std::begin(m_EXIDevice));
|
||||
|
||||
m_EmulationSpeed = config.m_EmulationSpeed;
|
||||
frameSkip = config.m_FrameSkip;
|
||||
|
||||
strBackend = config.m_strVideoBackend;
|
||||
sBackend = config.sBackend;
|
||||
m_strGPUDeterminismMode = config.m_strGPUDeterminismMode;
|
||||
|
||||
bSetEmulationSpeed = false;
|
||||
bSetVolume = false;
|
||||
bSetFrameSkip = false;
|
||||
bSetWiimoteSource.fill(false);
|
||||
bSetPads.fill(false);
|
||||
bSetEXIDevice.fill(false);
|
||||
bSetFrameSkip = false;
|
||||
}
|
||||
|
||||
void ConfigCache::RestoreConfig(SConfig* config)
|
||||
@ -152,12 +150,13 @@ void ConfigCache::RestoreConfig(SConfig* config)
|
||||
config->bDSPHLE = bDSPHLE;
|
||||
config->bHLE_BS2 = bHLE_BS2;
|
||||
config->bProgressive = bProgressive;
|
||||
config->m_SYSCONF->SetData("IPL.PGS", bProgressive);
|
||||
config->bPAL60 = bPAL60;
|
||||
config->m_SYSCONF->SetData("IPL.E60", bPAL60);
|
||||
config->SelectedLanguage = iSelectedLanguage;
|
||||
config->iCPUCore = iCPUCore;
|
||||
|
||||
config->m_SYSCONF->SetData("IPL.PGS", bProgressive);
|
||||
config->m_SYSCONF->SetData("IPL.E60", bPAL60);
|
||||
|
||||
// Only change these back if they were actually set by game ini, since they can be changed while a game is running.
|
||||
if (bSetVolume)
|
||||
config->m_Volume = Volume;
|
||||
|
Reference in New Issue
Block a user