SI_Device: Provide proper insertion/extraction operators for SIDevices enum
Allows the enumeration to be safely used with our type parsing functions.
This commit is contained in:
1 parent
febd1c3dba
commit
cfbabd4c41
3 files changed
+30
-1
No files matched your search
@@ -500,7 +500,7 @@ void SConfig::LoadCoreSettings(IniFile& ini)
|
||||
core->Get("BBA_MAC", &m_bba_mac);
|
||||
for (size_t i = 0; i < std::size(m_SIDevice); ++i)
|
||||
{
|
||||
core->Get(fmt::format("SIDevice{}", i), (u32*)&m_SIDevice[i],
|
||||
core->Get(fmt::format("SIDevice{}", i), &m_SIDevice[i],
|
||||
(i == 0) ? SerialInterface::SIDEVICE_GC_CONTROLLER : SerialInterface::SIDEVICE_NONE);
|
||||
core->Get(fmt::format("AdapterRumble{}", i), &m_AdapterRumble[i], true);
|
||||
core->Get(fmt::format("SimulateKonga{}", i), &m_AdapterKonga[i], false);
|
||||
|
||||
Reference in new issue
Block a user