(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:
Twinaphex 2012-05-28 23:14:18 +02:00
parent 6a48f1e187
commit a171f4c9fd
4 changed files with 5 additions and 5 deletions

View File

@ -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");

View File

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

View File

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

View File

@ -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();