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); }); }
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(); }
public override void Dispose() { if (this.isDisposed) { return; } if (this.installer != null) { this.installer.Dispose(); this.installer = null; } GC.SuppressFinalize(this); this.isDisposed = true; }
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); }