Flush message queue on ENVIRONMENT_SET_MESSAGE.

This commit is contained in:
Themaister 2013-06-16 11:04:41 +02:00
parent 3bfa8d568d
commit a58eddae65

View File

@ -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;
}