mirror of
https://github.com/libretro/RetroArch
synced 2025-02-07 03:40:24 +00:00
Turn function static
This commit is contained in:
parent
337e2110a1
commit
720424777b
40
retroarch.c
40
retroarch.c
@ -13005,6 +13005,27 @@ error:
|
||||
return false;
|
||||
}
|
||||
|
||||
static void runloop_task_msg_queue_push(
|
||||
retro_task_t *task, const char *msg,
|
||||
unsigned prio, unsigned duration,
|
||||
bool flush)
|
||||
{
|
||||
#if defined(HAVE_MENU) && defined(HAVE_MENU_WIDGETS)
|
||||
bool ready = menu_widgets_ready();
|
||||
if (ready && task->title && !task->mute)
|
||||
{
|
||||
runloop_msg_queue_lock();
|
||||
ui_companion_driver_msg_queue_push(msg,
|
||||
prio, task ? duration : duration * 60 / 1000, flush);
|
||||
menu_widgets_msg_queue_push(task, msg, duration, NULL, (enum message_queue_icon)MESSAGE_QUEUE_CATEGORY_INFO, (enum message_queue_category)MESSAGE_QUEUE_ICON_DEFAULT, prio, flush);
|
||||
runloop_msg_queue_unlock();
|
||||
}
|
||||
else
|
||||
#endif
|
||||
runloop_msg_queue_push(msg, prio, duration, flush, NULL, MESSAGE_QUEUE_ICON_DEFAULT, MESSAGE_QUEUE_CATEGORY_INFO);
|
||||
}
|
||||
|
||||
|
||||
bool rarch_ctl(enum rarch_ctl_state state, void *data)
|
||||
{
|
||||
static bool has_set_username = false;
|
||||
@ -14135,25 +14156,6 @@ global_t *global_get_ptr(void)
|
||||
return &g_extern;
|
||||
}
|
||||
|
||||
void runloop_task_msg_queue_push(retro_task_t *task, const char *msg,
|
||||
unsigned prio, unsigned duration,
|
||||
bool flush)
|
||||
{
|
||||
#if defined(HAVE_MENU) && defined(HAVE_MENU_WIDGETS)
|
||||
bool ready = menu_widgets_ready();
|
||||
if (ready && task->title && !task->mute)
|
||||
{
|
||||
runloop_msg_queue_lock();
|
||||
ui_companion_driver_msg_queue_push(msg,
|
||||
prio, task ? duration : duration * 60 / 1000, flush);
|
||||
menu_widgets_msg_queue_push(task, msg, duration, NULL, (enum message_queue_icon)MESSAGE_QUEUE_CATEGORY_INFO, (enum message_queue_category)MESSAGE_QUEUE_ICON_DEFAULT, prio, flush);
|
||||
runloop_msg_queue_unlock();
|
||||
}
|
||||
else
|
||||
#endif
|
||||
runloop_msg_queue_push(msg, prio, duration, flush, NULL, MESSAGE_QUEUE_ICON_DEFAULT, MESSAGE_QUEUE_CATEGORY_INFO);
|
||||
}
|
||||
|
||||
void runloop_msg_queue_push(const char *msg,
|
||||
unsigned prio, unsigned duration,
|
||||
bool flush,
|
||||
|
@ -403,11 +403,6 @@ global_t *global_get_ptr(void);
|
||||
**/
|
||||
int runloop_iterate(unsigned *sleep_ms);
|
||||
|
||||
void runloop_task_msg_queue_push(retro_task_t *task,
|
||||
const char *msg,
|
||||
unsigned prio, unsigned duration,
|
||||
bool flush);
|
||||
|
||||
void runloop_msg_queue_push(const char *msg,
|
||||
unsigned prio, unsigned duration,
|
||||
bool flush,
|
||||
|
Loading…
x
Reference in New Issue
Block a user