mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-02-13 16:01:05 +00:00
menu: Fix quick menu toggle crash with the null menu driver.
This commit is contained in:
parent
6384313279
commit
d37547e6fd
@ -2954,8 +2954,10 @@ static enum runloop_state runloop_check_state(
|
||||
/* Check menu toggle */
|
||||
{
|
||||
static bool old_pressed = false;
|
||||
char *menu_driver = settings->arrays.menu_driver;
|
||||
bool pressed = BIT256_GET(
|
||||
current_input, RARCH_MENU_TOGGLE);
|
||||
current_input, RARCH_MENU_TOGGLE) &&
|
||||
!string_is_equal(menu_driver, "null");
|
||||
|
||||
if (menu_event_kb_is_set(RETROK_F1) == 1)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user