mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 13:20:30 +00:00
Allow for preinit of message queue.
This commit is contained in:
parent
55ddfb0dc6
commit
7d2a00df4e
@ -463,6 +463,8 @@ void ssnes_load_state(void);
|
||||
void ssnes_save_state(void);
|
||||
void ssnes_state_slot_increase(void);
|
||||
void ssnes_state_slot_decrease(void);
|
||||
|
||||
void ssnes_init_msg_queue(void);
|
||||
/////////
|
||||
|
||||
// Public data structures
|
||||
|
7
ssnes.c
7
ssnes.c
@ -1192,9 +1192,10 @@ static void deinit_recording(void)
|
||||
}
|
||||
#endif
|
||||
|
||||
static void init_msg_queue(void)
|
||||
void ssnes_init_msg_queue(void)
|
||||
{
|
||||
ssnes_assert(g_extern.msg_queue = msg_queue_new(8));
|
||||
if (!g_extern.msg_queue)
|
||||
ssnes_assert(g_extern.msg_queue = msg_queue_new(8));
|
||||
}
|
||||
|
||||
static void deinit_msg_queue(void)
|
||||
@ -2307,7 +2308,7 @@ int ssnes_main_init(int argc, char *argv[])
|
||||
if (!init_rom_file(g_extern.game_type))
|
||||
goto error;
|
||||
|
||||
init_msg_queue();
|
||||
ssnes_init_msg_queue();
|
||||
|
||||
if (!g_extern.sram_load_disable)
|
||||
load_save_files();
|
||||
|
Loading…
x
Reference in New Issue
Block a user