From 4d028e2d66587eb3df76aee9d1a1177bcf4341a6 Mon Sep 17 00:00:00 2001 From: Calyx Hikari Date: Wed, 8 Jan 2025 22:28:00 +0800 Subject: [PATCH] revert the change --- WzComparerR2/FrmPatcher.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/WzComparerR2/FrmPatcher.cs b/WzComparerR2/FrmPatcher.cs index 356c5c5d..b5267d90 100644 --- a/WzComparerR2/FrmPatcher.cs +++ b/WzComparerR2/FrmPatcher.cs @@ -627,7 +627,7 @@ private void patcher_PatchingStateChanged(object sender, PatchingEventArgs e) } } - if (string.IsNullOrEmpty(this.compareFolder) && this.deadPatch && sender is WzPatcher patcher) + if (string.IsNullOrEmpty(this.compareFolder) && this.deadPatch && e.Part.Type == 1 && sender is WzPatcher patcher) { if (patcher.IsKMST1125Format.Value) { @@ -660,7 +660,7 @@ private void patcher_PatchingStateChanged(object sender, PatchingEventArgs e) AppendStateText(" (即時パッチ)ファイル適用の延期...\r\n"); } } - else if (e.Part.Type == 1) + else { patcher.SafeMove(e.Part.TempFilePath, e.Part.OldFilePath); AppendStateText(" (即時パッチ)ファイルを適用しています...\r\n");