mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-24 00:20:01 +00:00
Add menu message queue
This commit is contained in:
parent
5f6108e2e0
commit
e795e01f7a
@ -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;
|
||||
|
||||
|
@ -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];
|
||||
|
Loading…
Reference in New Issue
Block a user