mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 22:20:21 +00:00
Cleanup hid_joypad_name
This commit is contained in:
parent
a9e627ca57
commit
c1e343cec8
@ -86,7 +86,9 @@ static bool hid_joypad_rumble(unsigned pad,
|
||||
|
||||
static const char *hid_joypad_name(unsigned pad)
|
||||
{
|
||||
return generic_hid->name((void*)hid_driver_get_data(), pad);
|
||||
if (generic_hid && generic_hid->name)
|
||||
return generic_hid->name((void*)hid_driver_get_data(), pad);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
input_device_driver_t hid_joypad = {
|
||||
|
Loading…
x
Reference in New Issue
Block a user