From 0acb119f6114a3e463bb97d8b1e1c144bbe810a6 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sat, 3 Oct 2015 04:40:19 +0200 Subject: [PATCH] Don't use menu_driver_get_ptr in runloop anymore --- runloop.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/runloop.c b/runloop.c index a95df7cd96..ca97d09a2e 100644 --- a/runloop.c +++ b/runloop.c @@ -978,10 +978,8 @@ int rarch_main_iterate(unsigned *sleep_ms) #ifdef HAVE_MENU if (menu_driver_alive()) { - menu_handle_t *menu = menu_driver_get_ptr(); - if (menu) - if (menu_iterate(true, (enum menu_action)menu_input_frame(input, trigger_input)) == -1) - 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) return 1;