print warning if techtree is missing factions

This commit is contained in:
Mark Vejvoda 2013-09-30 22:12:35 +00:00
parent de8b083329
commit ee6eadb0d8
1 changed files with 7 additions and 1 deletions

View File

@ -1988,8 +1988,11 @@ void runTechValidationForPath(string techPath, string techName,
bool purgeUnusedFiles,bool purgeDuplicateFiles, bool showDuplicateFiles,
bool svnPurgeFiles,double &purgedMegaBytes) {
//Config &config = Config::getInstance();
string techTreeFolder = techPath + techName;
string techTreeFactionFolder = techTreeFolder + "/factions/";
vector<string> factionsList;
findDirs(techPath + techName + "/factions/", factionsList, false, false);
findDirs(techTreeFactionFolder, factionsList, false, false);
if(factionsList.empty() == false) {
Checksum checksum;
@ -2513,6 +2516,9 @@ void runTechValidationForPath(string techPath, string techName,
}
printf("----------------------------------------------------------------");
}
else if(folderExists(techTreeFolder) == true) {
printf("\nWarning, No factions were found for the techtree located in: [%s]\n",techTreeFolder.c_str());
}
}