mirror of
https://github.com/glest/glest-source.git
synced 2025-09-01 20:12:40 +02:00
print warning if techtree is missing factions
This commit is contained in:
@@ -1988,8 +1988,11 @@ void runTechValidationForPath(string techPath, string techName,
|
|||||||
bool purgeUnusedFiles,bool purgeDuplicateFiles, bool showDuplicateFiles,
|
bool purgeUnusedFiles,bool purgeDuplicateFiles, bool showDuplicateFiles,
|
||||||
bool svnPurgeFiles,double &purgedMegaBytes) {
|
bool svnPurgeFiles,double &purgedMegaBytes) {
|
||||||
//Config &config = Config::getInstance();
|
//Config &config = Config::getInstance();
|
||||||
|
|
||||||
|
string techTreeFolder = techPath + techName;
|
||||||
|
string techTreeFactionFolder = techTreeFolder + "/factions/";
|
||||||
vector<string> factionsList;
|
vector<string> factionsList;
|
||||||
findDirs(techPath + techName + "/factions/", factionsList, false, false);
|
findDirs(techTreeFactionFolder, factionsList, false, false);
|
||||||
|
|
||||||
if(factionsList.empty() == false) {
|
if(factionsList.empty() == false) {
|
||||||
Checksum checksum;
|
Checksum checksum;
|
||||||
@@ -2513,6 +2516,9 @@ void runTechValidationForPath(string techPath, string techName,
|
|||||||
}
|
}
|
||||||
printf("----------------------------------------------------------------");
|
printf("----------------------------------------------------------------");
|
||||||
}
|
}
|
||||||
|
else if(folderExists(techTreeFolder) == true) {
|
||||||
|
printf("\nWarning, No factions were found for the techtree located in: [%s]\n",techTreeFolder.c_str());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user