mirror of
https://github.com/libretro/RetroArch.git
synced 2025-04-02 10:51:52 -04:00
input_keys_pressed - do early return in case driver.input
or driver.input_data is NULL
This commit is contained in:
parent
aba3ae1898
commit
23640fd12e
1 changed files with 3 additions and 0 deletions
|
@ -772,6 +772,9 @@ static inline retro_input_t input_keys_pressed(void)
|
|||
};
|
||||
retro_input_t ret = 0;
|
||||
|
||||
if (!driver.input || !driver.input_data)
|
||||
return 0;
|
||||
|
||||
g_extern.turbo_count++;
|
||||
|
||||
check_block_hotkey(driver.input->key_pressed(driver.input_data,
|
||||
|
|
Loading…
Add table
Reference in a new issue