- only output changed file paths for load games if verbose enabled
This commit is contained in:
parent
c63da54bbd
commit
759997916e
|
@ -812,7 +812,7 @@ string Config::findValidLocalFileFromPath(string fileName) {
|
|||
vector<string> 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<string> 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<string> 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<string> 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<string> 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;
|
||||
|
|
Loading…
Reference in New Issue