mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2026-02-24 12:41:19 +00:00
gc_adapter: Make DeviceConnected() a const member function
This doesn't modify instance state, so it can be made const.
This commit is contained in:
@@ -283,7 +283,7 @@ void Adapter::Reset() {
|
||||
}
|
||||
}
|
||||
|
||||
bool Adapter::DeviceConnected(std::size_t port) {
|
||||
bool Adapter::DeviceConnected(std::size_t port) const {
|
||||
return adapter_controllers_status[port] != ControllerTypes::None;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user