diff --git a/source/glest_game/global/config.cpp b/source/glest_game/global/config.cpp index d977fe29..c8233d02 100644 --- a/source/glest_game/global/config.cpp +++ b/source/glest_game/global/config.cpp @@ -812,7 +812,7 @@ string Config::findValidLocalFileFromPath(string fileName) { vector dirList = config.getPathListForType(ptMaps); replaceFileWithLocalFile(dirList, fileNamePart, result); - printf("Found file [%s] @ " MG_SIZE_T_SPECIFIER " [%s]\nNew File [%s]\n",fileName.c_str(),pos,fileNamePart.c_str(),result.c_str()); + if(SystemFlags::VERBOSE_MODE_ENABLED) printf("Found file [%s] @ " MG_SIZE_T_SPECIFIER " [%s]\nNew File [%s]\n",fileName.c_str(),pos,fileNamePart.c_str(),result.c_str()); } else if(fileName.find("tilesets/") != fileName.npos ) { size_t pos = fileName.find("tilesets/"); @@ -821,7 +821,7 @@ string Config::findValidLocalFileFromPath(string fileName) { vector dirList = config.getPathListForType(ptTilesets); replaceFileWithLocalFile(dirList, fileNamePart, result); - printf("Found file [%s] @ " MG_SIZE_T_SPECIFIER " [%s]\nNew File [%s]\n",fileName.c_str(),pos,fileNamePart.c_str(),result.c_str()); + if(SystemFlags::VERBOSE_MODE_ENABLED) printf("Found file [%s] @ " MG_SIZE_T_SPECIFIER " [%s]\nNew File [%s]\n",fileName.c_str(),pos,fileNamePart.c_str(),result.c_str()); } else if(fileName.find("techs/") != fileName.npos ) { size_t pos = fileName.find("techs/"); @@ -830,7 +830,7 @@ string Config::findValidLocalFileFromPath(string fileName) { vector dirList = config.getPathListForType(ptTechs); replaceFileWithLocalFile(dirList, fileNamePart, result); - printf("Found file [%s] @ " MG_SIZE_T_SPECIFIER " [%s]\nNew File [%s]\n",fileName.c_str(),pos,fileNamePart.c_str(),result.c_str()); + if(SystemFlags::VERBOSE_MODE_ENABLED) printf("Found file [%s] @ " MG_SIZE_T_SPECIFIER " [%s]\nNew File [%s]\n",fileName.c_str(),pos,fileNamePart.c_str(),result.c_str()); } else if(fileName.find("scenarios/") != fileName.npos) { size_t pos = fileName.find("scenarios/"); @@ -839,7 +839,7 @@ string Config::findValidLocalFileFromPath(string fileName) { vector dirList = config.getPathListForType(ptScenarios); replaceFileWithLocalFile(dirList, fileNamePart, result); - printf("Found file [%s] @ " MG_SIZE_T_SPECIFIER " [%s]\nNew File [%s]\n",fileName.c_str(),pos,fileNamePart.c_str(),result.c_str()); + if(SystemFlags::VERBOSE_MODE_ENABLED) printf("Found file [%s] @ " MG_SIZE_T_SPECIFIER " [%s]\nNew File [%s]\n",fileName.c_str(),pos,fileNamePart.c_str(),result.c_str()); } else if(fileName.find("tutorials/") != fileName.npos) { size_t pos = fileName.find("tutorials/"); @@ -848,7 +848,7 @@ string Config::findValidLocalFileFromPath(string fileName) { vector dirList = config.getPathListForType(ptTutorials); replaceFileWithLocalFile(dirList, fileNamePart, result); - printf("Found file [%s] @ " MG_SIZE_T_SPECIFIER " [%s]\nNew File [%s]\n",fileName.c_str(),pos,fileNamePart.c_str(),result.c_str()); + if(SystemFlags::VERBOSE_MODE_ENABLED) printf("Found file [%s] @ " MG_SIZE_T_SPECIFIER " [%s]\nNew File [%s]\n",fileName.c_str(),pos,fileNamePart.c_str(),result.c_str()); } return result;