Report when a -conf file can not be loaded. Make spacing similar between messages.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4166
This commit is contained in:
parent
f522e81d32
commit
c7e6b3ca86
2 changed files with 5 additions and 3 deletions
|
@ -2098,9 +2098,11 @@ int main(int argc, char* argv[]) {
|
|||
|
||||
//Second parse -conf switches
|
||||
while(control->cmdline->FindString("-conf",config_file,true)) {
|
||||
if(!control->ParseConfigFile(config_file.c_str())) {
|
||||
if (!control->ParseConfigFile(config_file.c_str())) {
|
||||
// try to load it from the user directory
|
||||
control->ParseConfigFile((config_path + config_file).c_str());
|
||||
if (!control->ParseConfigFile((config_path + config_file).c_str())) {
|
||||
LOG_MSG("CONFIG: Can't open specified config file: %s",config_file.c_str());
|
||||
}
|
||||
}
|
||||
}
|
||||
// if none found => parse localdir conf
|
||||
|
|
|
@ -836,7 +836,7 @@ bool Config::ParseConfigFile(char const * const configfilename) {
|
|||
settings_type = (configfiles.size() == 0)? "primary":"additional";
|
||||
configfiles.push_back(configfilename);
|
||||
|
||||
LOG_MSG("CONFIG:Loading %s settings from config file %s", settings_type,configfilename);
|
||||
LOG_MSG("CONFIG: Loading %s settings from config file %s", settings_type,configfilename);
|
||||
|
||||
//Get directory from configfilename, used with relative paths.
|
||||
current_config_dir=configfilename;
|
||||
|
|
Loading…
Add table
Reference in a new issue