mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-03 06:39:33 +00:00
SI: Move MAX_SI_CHANNELS into the SerialInterface namespace
Given this constant is related to the serial interface, it shouldn't be outside of the namespace.
This commit is contained in:
parent
3b1dae5642
commit
a728d858b3
6 changed files with 16 additions and 16 deletions
|
@ -257,7 +257,7 @@ void SConfig::SaveCoreSettings(IniFile& ini)
|
|||
core->Set("SlotB", m_EXIDevice[1]);
|
||||
core->Set("SerialPort1", m_EXIDevice[2]);
|
||||
core->Set("BBA_MAC", m_bba_mac);
|
||||
for (int i = 0; i < MAX_SI_CHANNELS; ++i)
|
||||
for (int i = 0; i < SerialInterface::MAX_SI_CHANNELS; ++i)
|
||||
{
|
||||
core->Set(StringFromFormat("SIDevice%i", i), m_SIDevice[i]);
|
||||
core->Set(StringFromFormat("AdapterRumble%i", i), m_AdapterRumble[i]);
|
||||
|
@ -577,7 +577,7 @@ void SConfig::LoadCoreSettings(IniFile& ini)
|
|||
core->Get("BBA_MAC", &m_bba_mac);
|
||||
core->Get("TimeProfiling", &bJITILTimeProfiling, false);
|
||||
core->Get("OutputIR", &bJITILOutputIR, false);
|
||||
for (int i = 0; i < MAX_SI_CHANNELS; ++i)
|
||||
for (int i = 0; i < SerialInterface::MAX_SI_CHANNELS; ++i)
|
||||
{
|
||||
core->Get(StringFromFormat("SIDevice%i", i), (u32*)&m_SIDevice[i],
|
||||
(i == 0) ? SIDEVICE_GC_CONTROLLER : SIDEVICE_NONE);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue