mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-28 18:50:29 +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…
Reference in New Issue
Block a user