Move menu_do_refresh to rarch_main_data_iterate
This commit is contained in:
parent
ba220f1868
commit
02b29e08ad
|
@ -297,9 +297,6 @@ int menu_iterate(retro_input_t input,
|
||||||
|
|
||||||
action = menu->input.joypad;
|
action = menu->input.joypad;
|
||||||
|
|
||||||
if (menu_do_refresh(action) == 0)
|
|
||||||
return 0;
|
|
||||||
|
|
||||||
ret = menu_entry_iterate(action);
|
ret = menu_entry_iterate(action);
|
||||||
|
|
||||||
if (runloop->is_menu && !runloop->is_idle)
|
if (runloop->is_menu && !runloop->is_idle)
|
||||||
|
|
|
@ -22,6 +22,10 @@
|
||||||
#include <rthreads/rthreads.h>
|
#include <rthreads/rthreads.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef HAVE_MENU
|
||||||
|
#include "menu/menu.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
enum
|
enum
|
||||||
{
|
{
|
||||||
THREAD_CODE_INIT = 0,
|
THREAD_CODE_INIT = 0,
|
||||||
|
@ -268,6 +272,10 @@ void rarch_main_data_iterate(void)
|
||||||
data_runloop_msg[0] = '\0';
|
data_runloop_msg[0] = '\0';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef HAVE_MENU
|
||||||
|
menu_do_refresh(MENU_ACTION_REFRESH);
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_THREADS
|
#ifdef HAVE_THREADS
|
||||||
if (settings->menu.threaded_data_runloop_enable && runloop->alive)
|
if (settings->menu.threaded_data_runloop_enable && runloop->alive)
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue