mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 12:19:12 +00:00
SI: Namespace device classes
Places all of the SI code under the SerialInterface namespace instead of only the main source file. This keeps all SI code under a common name, as well as out of the global namespace
This commit is contained in:
parent
2cead402b3
commit
f0eeb3c63a
26 changed files with 112 additions and 50 deletions
|
@ -467,10 +467,11 @@ bool DeviceConnected(int chan)
|
|||
|
||||
bool UseAdapter()
|
||||
{
|
||||
return SConfig::GetInstance().m_SIDevice[0] == SIDEVICE_WIIU_ADAPTER ||
|
||||
SConfig::GetInstance().m_SIDevice[1] == SIDEVICE_WIIU_ADAPTER ||
|
||||
SConfig::GetInstance().m_SIDevice[2] == SIDEVICE_WIIU_ADAPTER ||
|
||||
SConfig::GetInstance().m_SIDevice[3] == SIDEVICE_WIIU_ADAPTER;
|
||||
const auto& si_devices = SConfig::GetInstance().m_SIDevice;
|
||||
|
||||
return std::any_of(std::begin(si_devices), std::end(si_devices), [](const auto device_type) {
|
||||
return device_type == SerialInterface::SIDEVICE_WIIU_ADAPTER;
|
||||
});
|
||||
}
|
||||
|
||||
void ResetRumble()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue