Example #1
0
    /// <summary>
    /// 初始化
    /// </summary>
    bool PreprocessFinished()
    {
        MainManifest = DownLoadCommon.LoadMainManifest();
        if (MainManifest == null)
        {
            Error(EmErrorCode.LoadMainManifestFailed
                  , "Can't load MainManifest file!");
            return(false);
        }


        ////记录当前版本号
        //Version = ResourcesManifest.Data.Version;
        ////标记已准备好
        IsReady = ErrorCode == EmErrorCode.None;

        return(true);
    }
Example #2
0
    /// <summary>
    /// 初始化结束
    /// </summary>
    bool PreprocessFinished()
    {
        this.InitCurrent = this.InitTotal;

        this.MainManifest = DownLoadCommon.LoadMainManifest();

        if (this.MainManifest == null)
        {
            Error(EmErrorCode.LoadMainManifestFailed
                  , "Can't load MainManifest file!");
            return(false);
        }

        ////标记已准备好
        IsReady = ErrorCode == EmErrorCode.None;

        return(true);
    }