Move menu_do_refresh to rarch_main_data_iterate

This commit is contained in:
twinaphex 2015-05-16 17:27:16 +02:00
parent ba220f1868
commit 02b29e08ad
2 changed files with 8 additions and 3 deletions

View File

@ -297,9 +297,6 @@ int menu_iterate(retro_input_t input,
action = menu->input.joypad;
if (menu_do_refresh(action) == 0)
return 0;
ret = menu_entry_iterate(action);
if (runloop->is_menu && !runloop->is_idle)

View File

@ -22,6 +22,10 @@
#include <rthreads/rthreads.h>
#endif
#ifdef HAVE_MENU
#include "menu/menu.h"
#endif
enum
{
THREAD_CODE_INIT = 0,
@ -268,6 +272,10 @@ void rarch_main_data_iterate(void)
data_runloop_msg[0] = '\0';
}
#ifdef HAVE_MENU
menu_do_refresh(MENU_ACTION_REFRESH);
#endif
#ifdef HAVE_THREADS
if (settings->menu.threaded_data_runloop_enable && runloop->alive)
return;