mirror of
https://github.com/libretro/RetroArch
synced 2025-04-09 21:45:45 +00:00
Merge pull request #7924 from orbea/menu_null
menu: Fix quick menu toggle crash with the null menu driver.
This commit is contained in:
commit
54a795bfd7
@ -2954,8 +2954,10 @@ static enum runloop_state runloop_check_state(
|
|||||||
/* Check menu toggle */
|
/* Check menu toggle */
|
||||||
{
|
{
|
||||||
static bool old_pressed = false;
|
static bool old_pressed = false;
|
||||||
|
char *menu_driver = settings->arrays.menu_driver;
|
||||||
bool pressed = BIT256_GET(
|
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)
|
if (menu_event_kb_is_set(RETROK_F1) == 1)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user