mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 22:20:21 +00:00
(GX) Make gx_input_get_joypad_driver slightly more robust
This commit is contained in:
parent
8856ed59a7
commit
e72777aada
@ -104,7 +104,9 @@ static uint64_t gx_input_get_capabilities(void *data)
|
||||
static const rarch_joypad_driver_t *gx_input_get_joypad_driver(void *data)
|
||||
{
|
||||
gx_input_t *gx = (gx_input_t*)data;
|
||||
return gx->joypad;
|
||||
if (gx)
|
||||
return gx->joypad;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
input_driver_t input_gx = {
|
||||
|
Loading…
x
Reference in New Issue
Block a user