mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-10-07 08:39:04 +00:00
Config: Port SI device settings to new config system.
This commit is contained in:
parent
a0a0bfc5ca
commit
5c325eef38
17 changed files with 114 additions and 66 deletions
|
@ -104,10 +104,6 @@ void SConfig::SaveCoreSettings(IniFile& ini)
|
|||
core->Set("SyncGpuMaxDistance", iSyncGpuMaxDistance);
|
||||
core->Set("SyncGpuMinDistance", iSyncGpuMinDistance);
|
||||
core->Set("SyncGpuOverclock", fSyncGpuOverclock);
|
||||
for (int i = 0; i < SerialInterface::MAX_SI_CHANNELS; ++i)
|
||||
{
|
||||
core->Set(fmt::format("SIDevice{}", i), m_SIDevice[i]);
|
||||
}
|
||||
core->Set("MMU", bMMU);
|
||||
}
|
||||
|
||||
|
@ -127,11 +123,6 @@ void SConfig::LoadCoreSettings(IniFile& ini)
|
|||
IniFile::Section* core = ini.GetOrCreateSection("Core");
|
||||
|
||||
core->Get("CPUThread", &bCPUThread, true);
|
||||
for (size_t i = 0; i < std::size(m_SIDevice); ++i)
|
||||
{
|
||||
core->Get(fmt::format("SIDevice{}", i), &m_SIDevice[i],
|
||||
(i == 0) ? SerialInterface::SIDEVICE_GC_CONTROLLER : SerialInterface::SIDEVICE_NONE);
|
||||
}
|
||||
core->Get("MMU", &bMMU, bMMU);
|
||||
core->Get("BBDumpPort", &iBBDumpPort, -1);
|
||||
core->Get("SyncGPU", &bSyncGPU, false);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue