mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-06-18 18:58:55 +02: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:
@ -385,10 +385,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()
|
||||
|
Reference in New Issue
Block a user