mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-22 10:49:02 +00:00
Move ui companion msg_queue_push call to runloop_msg
This commit is contained in:
parent
f87154773d
commit
c8b83de31c
@ -290,13 +290,5 @@ void menu_display_timedate(char *s, size_t len, unsigned time_mode)
|
||||
void menu_display_msg_queue_push(const char *msg, unsigned prio, unsigned duration,
|
||||
bool flush)
|
||||
{
|
||||
|
||||
rarch_main_msg_queue_push(msg, prio, duration, flush);
|
||||
|
||||
if (ui_companion_is_on_foreground())
|
||||
{
|
||||
const ui_companion_driver_t *ui = ui_companion_get_ptr();
|
||||
if (ui->msg_queue_push)
|
||||
ui->msg_queue_push(msg, prio, duration, flush);
|
||||
}
|
||||
}
|
||||
|
@ -73,6 +73,13 @@ void rarch_main_msg_queue_push(const char *msg, unsigned prio, unsigned duration
|
||||
msg_queue_clear(g_msg_queue);
|
||||
msg_queue_push(g_msg_queue, msg, prio, duration);
|
||||
|
||||
if (ui_companion_is_on_foreground())
|
||||
{
|
||||
const ui_companion_driver_t *ui = ui_companion_get_ptr();
|
||||
if (ui->msg_queue_push)
|
||||
ui->msg_queue_push(msg, prio, duration, flush);
|
||||
}
|
||||
|
||||
#ifdef HAVE_THREADS
|
||||
slock_unlock(mq_lock);
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user