public static void CheckMatchClientVersion(InitConfigDelegate pCallBack) { bool ok = true; string msg = _ClientVersion.GetVersion(); STVersion ConfigVersion = GetCurrentConfigVersion(); if (ConfigVersion.Major != _ClientVersion.Major || ConfigVersion.Minor != _ClientVersion.Minor) { // need to show the force patch popup msg = "You have to patch the newest version( " + ConfigVersion.GetVersion() + " ) of the game client. (" + _ClientVersion.GetVersion() + ")"; ok = false; } else if (ConfigVersion.Revision != _ClientVersion.Revision) { // need to show the recommend popup msg = "The newest version( " + ConfigVersion.GetVersion() + " ) of the game client(" + _ClientVersion.GetVersion() + ") is available."; ok = false; } if (pCallBack != null) { pCallBack(ok, msg); } }
public static string GetBuildVersion() { return(_ClientVersion.GetVersion()); }