From de5869c69e227a6d55a475a500e444e2e68dfbcb Mon Sep 17 00:00:00 2001 From: twinaphex Date: Tue, 18 Dec 2012 08:51:25 +0100 Subject: [PATCH] rarch_main_idle_iterate only compiled in if HAVE_RARCH_MAIN_WRAP is undefined --- retroarch.c | 35 ++++++++++++++++++----------------- 1 file changed, 18 insertions(+), 17 deletions(-) diff --git a/retroarch.c b/retroarch.c index dd29121da6..b2323dcec4 100644 --- a/retroarch.c +++ b/retroarch.c @@ -2732,23 +2732,6 @@ static inline bool rarch_main_paused(void) return g_extern.is_paused && !g_extern.is_oneshot; } -static bool rarch_main_idle_iterate(void) -{ -#ifdef HAVE_COMMAND - if (driver.command) - rarch_cmd_pre_frame(driver.command); -#endif - - if (input_key_pressed_func(RARCH_QUIT_KEY) || - !video_alive_func()) - return false; - - do_state_checks(); - - input_poll(); - rarch_sleep(10); - return true; -} bool rarch_main_iterate(void) { @@ -2880,6 +2863,24 @@ void rarch_main_deinit(void) } #ifndef HAVE_RARCH_MAIN_WRAP +static bool rarch_main_idle_iterate(void) +{ +#ifdef HAVE_COMMAND + if (driver.command) + rarch_cmd_pre_frame(driver.command); +#endif + + if (input_key_pressed_func(RARCH_QUIT_KEY) || + !video_alive_func()) + return false; + + do_state_checks(); + + input_poll(); + rarch_sleep(10); + return true; +} + int rarch_main(int argc, char *argv[]) { int init_ret;