From 2b9326197a3a060d585d1afb0948644e8cef6dc4 Mon Sep 17 00:00:00 2001 From: SoftCoder Date: Fri, 3 Jan 2014 07:28:31 -0800 Subject: [PATCH] - added verbose debug info for data paths scanning --- source/glest_game/facilities/game_util.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/source/glest_game/facilities/game_util.cpp b/source/glest_game/facilities/game_util.cpp index d810647c..b2d94bc6 100644 --- a/source/glest_game/facilities/game_util.cpp +++ b/source/glest_game/facilities/game_util.cpp @@ -285,6 +285,8 @@ string getGameCustomCoreDataPath(string originalBasePath, string uniqueFilePath) // decide which file to use string result = ""; + if (SystemFlags::VERBOSE_MODE_ENABLED) printf("Looking for [%s] in\n#1: [%s]\n#2: [%s]\n#3: [%s]\n",uniqueFilePath.c_str(),custom_mod_path.c_str(),data_path.c_str(),originalBasePath.c_str()); + if(custom_mod_path != "" && (uniqueFilePath == "" || fileExists(custom_mod_path + uniqueFilePath) == true)) { result = custom_mod_path + uniqueFilePath; @@ -297,7 +299,8 @@ string getGameCustomCoreDataPath(string originalBasePath, string uniqueFilePath) result = originalBasePath + uniqueFilePath; } - //printf("data_path [%s] result [%s]\n",data_path.c_str(),result.c_str()); + if (SystemFlags::VERBOSE_MODE_ENABLED) printf("result [%s]\n",result.c_str()); + return result; }