Add menu message queue

This commit is contained in:
twinaphex 2015-02-24 00:01:45 +01:00
parent 5f6108e2e0
commit e795e01f7a
2 changed files with 8 additions and 0 deletions

View File

@ -207,6 +207,8 @@ void *menu_init(const void *data)
if (!menu->animation)
goto error;
rarch_assert(menu->msg_queue = msg_queue_new(8));
return menu;
error:
if (menu->menu_list)
@ -269,6 +271,10 @@ void menu_free(void *data)
libretro_free_system_info(&g_extern.menu.info);
#endif
if (menu->msg_queue)
msg_queue_free(menu->msg_queue);
menu->msg_queue = NULL;
menu_animation_free(menu->animation);
menu->animation = NULL;

View File

@ -21,6 +21,7 @@
#include <stdint.h>
#include <boolean.h>
#include <retro_miscellaneous.h>
#include <queues/message_queue.h>
#include "menu_animation.h"
#include "menu_list.h"
#include "menu_database.h"
@ -128,6 +129,7 @@ typedef struct
*/
char message_contents[PATH_MAX_LENGTH];
msg_queue_t *msg_queue;
char default_glslp[PATH_MAX_LENGTH];
char default_cgp[PATH_MAX_LENGTH];