mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-01-07 19:01:14 +00:00
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:
parent
813c7ad1f7
commit
ea85727b3c
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user