コード例 #1
0
ファイル: CriFsServer.cs プロジェクト: Gpg16375001/BlueApple
    void Update()
    {
                #pragma warning disable 162
        if (CriWare.supportsCriFsInstaller == true)
        {
            CriFsInstaller.ExecuteMain();
            if (CriFsWebInstaller.isInitialized)
            {
                CriFsWebInstaller.ExecuteMain();
            }
        }
                #pragma warning restore 162

        for (int i = 0; i < this.requestList.Count; i++)
        {
            CriFsRequest request = this.requestList[i];
            request.Update();
        }
        this.requestList.RemoveAll((CriFsRequest request) => { return(request.isDone || request.isDisposed); });
    }
コード例 #2
0
ファイル: CriFs.cs プロジェクト: Dio-Deus/solitude
    public override void Update()
    {
        /* インストーラの有無をチェック */
        if (this.installer == null) {
            return;
        }

        /* 進捗状況の更新 */
        this.progress = this.installer.GetProgress();

        /* ステータスのチェック */
        CriFsInstaller.Status status = this.installer.GetStatus();
        if (status == CriFsInstaller.Status.Busy) {
            return;
        }

        /* エラーチェック */
        if (status == CriFsInstaller.Status.Error) {
            this.progress = -1.0f;
            this.error = "Error occurred.";
        }

        /* インストーラの破棄 */
        this.installer.Dispose();
        this.installer = null;

        /* 処理の完了を通知 */
        this.Done();
    }
コード例 #3
0
ファイル: CriFs.cs プロジェクト: Dio-Deus/solitude
    public override void Dispose()
    {
        if (this.isDisposed) {
            return;
        }

        if (this.installer != null) {
            this.installer.Dispose();
            this.installer = null;
        }

        GC.SuppressFinalize(this);
        this.isDisposed = true;
    }
コード例 #4
0
ファイル: CriFs.cs プロジェクト: Dio-Deus/solitude
 public CriFsInstallRequest(CriFsBinder srcBinder, string srcPath, string dstPath, CriFsRequest.DoneDelegate doneDelegate, int installBufferSize)
 {
     this.sourcePath = srcPath;
     this.destinationPath = dstPath;
     this.doneDelegate = doneDelegate;
     this.progress = 0.0f;
     this.installer = new CriFsInstaller();
     this.installer.Copy(srcBinder, srcPath, dstPath, installBufferSize);
 }