From a58eddae65e9ea6be956c474b552d764fbeda7dc Mon Sep 17 00:00:00 2001 From: Themaister Date: Sun, 16 Jun 2013 11:04:41 +0200 Subject: [PATCH] Flush message queue on ENVIRONMENT_SET_MESSAGE. --- dynamic.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dynamic.c b/dynamic.c index 330dc51e08..ec2c490664 100644 --- a/dynamic.c +++ b/dynamic.c @@ -532,7 +532,10 @@ static bool environment_cb(unsigned cmd, void *data) const struct retro_message *msg = (const struct retro_message*)data; RARCH_LOG("Environ SET_MESSAGE: %s\n", msg->msg); if (g_extern.msg_queue) + { + msg_queue_clear(g_extern.msg_queue); msg_queue_push(g_extern.msg_queue, msg->msg, 1, msg->frames); + } break; }