mirror of
https://github.com/libretro/RetroArch.git
synced 2025-01-24 18:36:31 +00:00
(RARCH_CONSOLE) We want to init the message queue way before RetroArch
actually starts on consoles - therefore we add this ifdef - beats having to add this for every console port
This commit is contained in:
parent
6a48f1e187
commit
a171f4c9fd
@ -267,8 +267,6 @@ int main(int argc, char *argv[])
|
||||
rarch_main_clear_state();
|
||||
config_set_defaults();
|
||||
|
||||
rarch_assert(g_extern.msg_queue = msg_queue_new(8));
|
||||
|
||||
char full_path[1024];
|
||||
snprintf(full_path, sizeof(full_path), "game:\\CORE.xex");
|
||||
|
||||
|
@ -315,8 +315,6 @@ int main(int argc, char *argv[])
|
||||
|
||||
config_set_defaults();
|
||||
|
||||
rarch_assert(g_extern.msg_queue = msg_queue_new(8));
|
||||
|
||||
char full_path[1024], tmp_path[1024];
|
||||
snprintf(full_path, sizeof(full_path), "%s/%s/CORE.SELF", usrDirPath, EMULATOR_CORE_DIR);
|
||||
snprintf(tmp_path, sizeof(tmp_path), "%s/%s/", usrDirPath, EMULATOR_CORE_DIR);
|
||||
|
@ -208,6 +208,10 @@ void config_set_defaults(void)
|
||||
g_settings.input.netplay_client_swap_input = netplay_client_swap_input;
|
||||
for (int i = 0; i < MAX_PLAYERS; i++)
|
||||
g_settings.input.joypad_map[i] = i;
|
||||
|
||||
#ifdef RARCH_CONSOLE
|
||||
rarch_assert(g_extern.msg_queue = msg_queue_new(8));
|
||||
#endif
|
||||
}
|
||||
|
||||
#ifdef HAVE_CONFIGFILE
|
||||
|
@ -135,7 +135,7 @@ int main(void)
|
||||
log_fp = fopen("sd:/ssnes-log.txt", "w");
|
||||
#endif
|
||||
|
||||
rarch_assert(g_extern.msg_queue = msg_queue_new(8));
|
||||
config_set_defaults();
|
||||
|
||||
wii_video_init();
|
||||
input_wii.init();
|
||||
|
Loading…
x
Reference in New Issue
Block a user