Should make Start Core work on statically linked RA now

This commit is contained in:
twinaphex 2016-09-12 08:37:40 +02:00
parent 488079d39f
commit 49d5210256
2 changed files with 5 additions and 1 deletions

View File

@ -722,7 +722,8 @@ static void retroarch_parse_input(int argc, char *argv[])
* bogus arguments.
*/
retroarch_set_current_core_type(CORE_TYPE_DUMMY, false);
if (!current_core_explicitly_set)
retroarch_set_current_core_type(CORE_TYPE_DUMMY, false);
*global->subsystem = '\0';
@ -1071,12 +1072,14 @@ static void retroarch_parse_input(int argc, char *argv[])
RARCH_ERR("--menu was used, but content file was passed as well.\n");
retroarch_fail(1, "retroarch_parse_input()");
}
#ifdef HAVE_DYNAMIC
else
{
/* Allow stray -L arguments to go through to workaround cases where it's used as "config file".
* This seems to still be the case for Android, which should be properly fixed. */
retroarch_set_current_core_type(CORE_TYPE_DUMMY, false);
}
#endif
}
if (string_is_empty(global->subsystem) && optind < argc)

View File

@ -1962,6 +1962,7 @@ bool task_push_content_load_default(
runloop_ctl(RUNLOOP_CTL_DATA_DEINIT, NULL);
runloop_ctl(RUNLOOP_CTL_TASK_INIT, NULL);
break;
case CONTENT_MODE_LOAD_NOTHING_WITH_CURRENT_CORE_FROM_MENU:
case CONTENT_MODE_LOAD_NOTHING_WITH_NEW_CORE_FROM_MENU:
retroarch_set_current_core_type(type, true);
break;