Move config dir detection earlier
Setting up configuration file location is a dependency for: $ dosbox -printconf $ dosbox -editconf vim $ dosbox -eraseconf Wee need to have cache initialized before these parameters are handled.
This commit is contained in:
parent
1bd770b5b4
commit
83e1a3a944
1 changed files with 2 additions and 2 deletions
|
@ -3089,6 +3089,8 @@ int main(int argc, char* argv[]) {
|
|||
Disable_OS_Scaling(); //Do this early on, maybe override it through some parameter.
|
||||
OverrideWMClass(); // Before SDL2 video subsystem is initialized
|
||||
|
||||
CROSS_DetermineConfigPaths();
|
||||
|
||||
CommandLine com_line(argc,argv);
|
||||
Config myconf(&com_line);
|
||||
control=&myconf;
|
||||
|
@ -3156,8 +3158,6 @@ int main(int argc, char* argv[]) {
|
|||
sdl.laltstate = SDL_KEYUP;
|
||||
sdl.raltstate = SDL_KEYUP;
|
||||
|
||||
CROSS_DetermineConfigPaths();
|
||||
|
||||
/* Parse configuration files */
|
||||
std::string config_file, config_path, config_combined;
|
||||
Cross::GetPlatformConfigDir(config_path);
|
||||
|
|
Loading…
Add table
Reference in a new issue