mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-02-08 04:39:34 +00:00
Don't use menu_driver_get_ptr in runloop anymore
This commit is contained in:
parent
798e7fa7fa
commit
0acb119f61
@ -978,10 +978,8 @@ int rarch_main_iterate(unsigned *sleep_ms)
|
|||||||
#ifdef HAVE_MENU
|
#ifdef HAVE_MENU
|
||||||
if (menu_driver_alive())
|
if (menu_driver_alive())
|
||||||
{
|
{
|
||||||
menu_handle_t *menu = menu_driver_get_ptr();
|
if (menu_iterate(true, (enum menu_action)menu_input_frame(input, trigger_input)) == -1)
|
||||||
if (menu)
|
rarch_ctl(RARCH_ACTION_STATE_MENU_RUNNING_FINISHED, NULL);
|
||||||
if (menu_iterate(true, (enum menu_action)menu_input_frame(input, trigger_input)) == -1)
|
|
||||||
rarch_ctl(RARCH_ACTION_STATE_MENU_RUNNING_FINISHED, NULL);
|
|
||||||
|
|
||||||
if (!input && settings->menu.pause_libretro)
|
if (!input && settings->menu.pause_libretro)
|
||||||
return 1;
|
return 1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user