From f483d862b236c6d48bcb66534c6cd1096128b595 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Fri, 9 May 2014 05:52:18 +0200 Subject: [PATCH] (Apple) Build fix --- frontend/platform/platform_apple.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/frontend/platform/platform_apple.c b/frontend/platform/platform_apple.c index 60c31d0677..4a341e707c 100644 --- a/frontend/platform/platform_apple.c +++ b/frontend/platform/platform_apple.c @@ -103,16 +103,19 @@ void apple_refresh_config(void) int apple_rarch_load_content(int argc, char* argv[]) { + rgui_handle_t *rgui; rarch_main_clear_state(); rarch_init_msg_queue(); if (rarch_main_init(argc, argv)) return 1; - menu_init(driver.menu); + driver.menu = (rgui_handle_t*)menu_init(); + + rgui = (rgui_handle_t*)driver.menu; - if (!g_extern.libretro_dummy) - menu_rom_history_push_current(driver.menu); + if (!g_extern.libretro_dummy && rgui) + menu_rom_history_push_current(rgui); g_extern.lifecycle_state |= 1ULL << MODE_GAME;