Fix --appendconfig conflict with load order

I'd previously changed the load order of command line options to make
overrides work with less hassle. I didn't notice --appendconfig, which,
as a where-is-the-config-file option, needs to come before config file
loading. This fixes that.
This commit is contained in:
Gregor Richards 2018-03-20 18:48:51 -04:00
parent 813c7ad1f7
commit ea85727b3c

View File

@ -725,6 +725,10 @@ static void retroarch_parse_input_and_config(int argc, char *argv[])
path_set(RARCH_PATH_CONFIG, optarg);
break;
case RA_OPT_APPENDCONFIG:
path_set(RARCH_PATH_CONFIG_APPEND, optarg);
break;
case 's':
strlcpy(global->name.savefile, optarg,
sizeof(global->name.savefile));
@ -1022,10 +1026,6 @@ static void retroarch_parse_input_and_config(int argc, char *argv[])
}
break;
case RA_OPT_APPENDCONFIG:
path_set(RARCH_PATH_CONFIG_APPEND, optarg);
break;
case RA_OPT_SIZE:
if (sscanf(optarg, "%ux%u",
recording_driver_get_width(),
@ -1070,6 +1070,7 @@ static void retroarch_parse_input_and_config(int argc, char *argv[])
case 'c':
case 'h':
case RA_OPT_APPENDCONFIG:
case 's':
case 'S':
break; /* Handled in the first pass */