mirror of
https://github.com/libretro/RetroArch
synced 2025-03-03 04:14:00 +00:00
Cleanup input_config_get_device_count
This commit is contained in:
parent
6cf3b0b769
commit
b5c39a6e5e
@ -13778,8 +13778,7 @@ unsigned input_config_get_device_count(void)
|
||||
unsigned num_devices;
|
||||
for (num_devices = 0; num_devices < MAX_INPUT_DEVICES; ++num_devices)
|
||||
{
|
||||
const char *device_name = input_config_get_device_name(num_devices);
|
||||
if (string_is_empty(device_name))
|
||||
if (string_is_empty(input_device_names[num_devices]))
|
||||
break;
|
||||
}
|
||||
return num_devices;
|
||||
|
Loading…
x
Reference in New Issue
Block a user