Esempio n. 1
0
        /** 保存版本信息 */
        public static void saveVersion()
        {
            //写一次
            if (_versionModified)
            {
                _versionModified = false;

                if (!ShineSetting.debugJumpResourceVersion)
                {
                    _versionStream.clear();
                    _versionStream.writeVersion(ShineGlobal.versionInfoVersion);
                    _versionData.writeBytes(_versionStream);
                    FileUtils.writeFileForBytesWriteStream(_versionPath, _versionStream);
                    _versionStream.clear();
                }
            }
        }