Fix veryverbose output. Patch from Max Vasilyev 2:5057/77

This commit is contained in:
Stas Degteff 2012-02-29 13:25:31 +00:00
parent e8ed3980ce
commit e8615ef5b2

View File

@ -442,7 +442,9 @@ static void w_brag() {
static bool ExistCfg(char* path, char* file) { static bool ExistCfg(char* path, char* file) {
if(veryverbose) STD_PRINT("Try config file \"" << path << file << "\"... ");
bool found = fexist(AddPath(path, file)); bool found = fexist(AddPath(path, file));
if(veryverbose) STD_PRINTNL( (found?("Found!"):("not found.")) );
if(found) if(found)
strcat(path, file); strcat(path, file);
return found; return found;
@ -468,14 +470,10 @@ static bool FindCfg(char* 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;
} }