From ee6eadb0d8a66e61cdc50d4bbdddb0e19585733d Mon Sep 17 00:00:00 2001 From: Mark Vejvoda Date: Mon, 30 Sep 2013 22:12:35 +0000 Subject: [PATCH] print warning if techtree is missing factions --- source/glest_game/main/main.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/source/glest_game/main/main.cpp b/source/glest_game/main/main.cpp index 2ae55fae..84514dc7 100644 --- a/source/glest_game/main/main.cpp +++ b/source/glest_game/main/main.cpp @@ -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 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()); + } }