veryverbose now shows config file search process
This commit is contained in:
parent
9a3af486d7
commit
e919bad1cd
@ -452,23 +452,30 @@ static bool FindCfg(char* path) {
|
|||||||
bool found = false;
|
bool found = false;
|
||||||
|
|
||||||
if(!is_dir(path)) {
|
if(!is_dir(path)) {
|
||||||
if(fexist(path))
|
if(veryverbose) STD_PRINT("Try config file \"" << path << "\"... ");
|
||||||
|
if(fexist(path)) {
|
||||||
|
if(veryverbose) STD_PRINTNL("File found!");
|
||||||
return true;
|
return true;
|
||||||
else
|
} else {
|
||||||
|
if(veryverbose) STD_PRINTNL("file not found.");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
}else if(veryverbose) STD_PRINTNL("Try config dir \"" << path << "\":");
|
||||||
AddBackslash(path);
|
AddBackslash(path);
|
||||||
|
|
||||||
#ifdef GEDCFG2
|
#ifdef GEDCFG2
|
||||||
found = ExistCfg(path, GEDCFG2);
|
found = ExistCfg(path, GEDCFG2);
|
||||||
|
if(veryverbose) STD_PRINTNL( "Try config file \"" << path << (GEDCFG2) <<
|
||||||
|
"\"... " << (found?("Found!"):("not found.")) );
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if(not found)
|
if(not found)
|
||||||
found = ExistCfg(path, GEDCFG);
|
found = ExistCfg(path, GEDCFG);
|
||||||
|
if(veryverbose) STD_PRINTNL( "Try config file \"" << path << (GEDCFG) <<
|
||||||
|
"\"... " << (found?("Found!"):("not found.")) );
|
||||||
return found;
|
return found;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// ------------------------------------------------------------------
|
// ------------------------------------------------------------------
|
||||||
|
|
||||||
#ifdef __WIN32__
|
#ifdef __WIN32__
|
||||||
|
Reference in New Issue
Block a user