예제 #1
0
        protected override void OnExit()
        {
            if (StageCode_ == StageCode.Succeeded)
            {
                ResPatchInfo PatchInfo = Updater_.GetCurrentResPatchInfo();

                if (PatchInfo == null)
                {
                    return;
                }

                UpdateTool.UpdateResVersionInfo(PatchInfo.To_);
                Updater_.SetCurrentVersionInfo(PatchInfo.To_);
                Updater_.SetCurrentResPatchInfo(null);
            }
        }
예제 #2
0
        protected override void OnEnter()
        {
            Updater_.SetProgressID(StageProgressID.GetResVersionBegin);
            Updater_.SetProgressValue(0);
            Updater_.ClearError();

            ResVersionInfo VersionInfo = UpdateTool.GetResVersionInfo();

            if (VersionInfo == null)
            {
                StageCode_ = StageCode.Failed;
                Updater_.SetError(ErrorCode.GetResVersionInfoFailed, UpdateTool.VersionInfoPath_);
            }
            else
            {
                Updater_.SetResVersionInfo(VersionInfo);
                Updater_.SetCurrentVersionInfo(VersionInfo.Version_);
                StageCode_ = StageCode.Succeeded;
            }

            Updater_.SetProgressID(StageProgressID.GetResVersionEnd);
            Updater_.SetProgressValue(1.0f);
        }