mirror of
https://github.com/libretro/RetroArch
synced 2025-03-25 16:44:01 +00:00
Make rarch_main_data_active a public function
This commit is contained in:
parent
10e2949ad8
commit
0330d2f245
@ -1110,7 +1110,8 @@ int rarch_main_iterate(void)
|
|||||||
rarch_main_iterate_linefeed_overlay();
|
rarch_main_iterate_linefeed_overlay();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
rarch_main_data_iterate();
|
if (rarch_main_data_active(runloop))
|
||||||
|
rarch_main_data_iterate();
|
||||||
|
|
||||||
#ifdef HAVE_MENU
|
#ifdef HAVE_MENU
|
||||||
if (runloop->is_menu)
|
if (runloop->is_menu)
|
||||||
|
@ -107,8 +107,7 @@ static void data_runloop_iterate(bool is_thread, data_runloop_t *runloop)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#ifdef HAVE_THREADS
|
bool rarch_main_data_active(data_runloop_t *runloop)
|
||||||
static bool rarch_main_data_active(data_runloop_t *runloop)
|
|
||||||
{
|
{
|
||||||
bool image_active, nbio_active, http_active,
|
bool image_active, nbio_active, http_active,
|
||||||
http_conn_active, overlay_active;
|
http_conn_active, overlay_active;
|
||||||
@ -201,6 +200,7 @@ static void data_thread_loop(void *data)
|
|||||||
RARCH_LOG("[Data Thread]: Stopping data thread.\n");
|
RARCH_LOG("[Data Thread]: Stopping data thread.\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef HAVE_THREADS
|
||||||
static void rarch_main_data_thread_init(void)
|
static void rarch_main_data_thread_init(void)
|
||||||
{
|
{
|
||||||
data_runloop_t *runloop = (data_runloop_t*)rarch_main_data_get_ptr();
|
data_runloop_t *runloop = (data_runloop_t*)rarch_main_data_get_ptr();
|
||||||
|
@ -163,6 +163,8 @@ void rarch_main_data_free(void);
|
|||||||
|
|
||||||
void rarch_main_data_init_queues(void);
|
void rarch_main_data_init_queues(void);
|
||||||
|
|
||||||
|
bool rarch_main_data_active(data_runloop_t *runloop);
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user