From df042b5bf2ca664b7f3a12e65ac44d05a43d3cc5 Mon Sep 17 00:00:00 2001 From: Mark Vejvoda Date: Sun, 5 Dec 2010 03:41:44 +0000 Subject: [PATCH] - added another debug entry for client vs server version comparison --- source/shared_lib/sources/util/util.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/source/shared_lib/sources/util/util.cpp b/source/shared_lib/sources/util/util.cpp index 316d7c7c..74732d6e 100644 --- a/source/shared_lib/sources/util/util.cpp +++ b/source/shared_lib/sources/util/util.cpp @@ -548,6 +548,8 @@ bool fileExists(const string &path){ bool checkVersionComptability(string clientVersionString, string serverVersionString) { bool compatible = (clientVersionString == serverVersionString); if(compatible == false) { + SystemFlags::OutputDebug(SystemFlags::debugSystem,"In [%s::%s Line: %d] clientVersionString [%s], serverVersionString [%s]\n",__FILE__,__FUNCTION__,__LINE__,clientVersionString.c_str(),serverVersionString.c_str()); + vector tokens; vector tokensServer; Tokenize(clientVersionString,tokens,"."); @@ -555,9 +557,14 @@ bool checkVersionComptability(string clientVersionString, string serverVersionSt // only check the first 3 sections with . to compare makor versions #'s compatible = (tokens.size() >= 3 && tokensServer.size() >= 3); + + SystemFlags::OutputDebug(SystemFlags::debugSystem,"In [%s::%s Line: %d] clientVersionString [%s], serverVersionString [%s] compatible [%d]\n",__FILE__,__FUNCTION__,__LINE__,clientVersionString.c_str(),serverVersionString.c_str(),compatible); + for(int i = 0; compatible == true && i < 3; ++i) { if(tokens[i] != tokensServer[i]) { compatible = false; + + SystemFlags::OutputDebug(SystemFlags::debugSystem,"In [%s::%s Line: %d] tokens[i] = [%s], tokensServer[i] = [%s] compatible [%d]\n",__FILE__,__FUNCTION__,__LINE__,tokens[i].c_str(),tokensServer[i].c_str(),compatible); } } }