예제 #1
0
        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);
            }
        }
예제 #2
0
 public static void BuildSetting(STVersion version, string configURL)
 {
     _ClientVersion   = version;
     CurrentConfigURL = configURL;
 }