From c2e608056d23dc2a57af31101d5c2014d4c075c9 Mon Sep 17 00:00:00 2001 From: huiyadanli Date: Tue, 17 May 2022 22:36:21 +0800 Subject: [PATCH] =?UTF-8?q?[#]=20=E9=92=88=E5=AF=B9=E8=80=81=E7=89=88?= =?UTF-8?q?=E6=9C=AC=E5=BE=AE=E4=BF=A1=E7=9A=84=E5=85=BC=E5=AE=B9=E4=BB=A3?= =?UTF-8?q?=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- RevokeMsgPatcher/Modifier/AppModifier.cs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/RevokeMsgPatcher/Modifier/AppModifier.cs b/RevokeMsgPatcher/Modifier/AppModifier.cs index b7fd58b..fcf9084 100644 --- a/RevokeMsgPatcher/Modifier/AppModifier.cs +++ b/RevokeMsgPatcher/Modifier/AppModifier.cs @@ -146,16 +146,20 @@ namespace RevokeMsgPatcher.Modifier { return false; } - int success = 0; + int success = 0, count = 0; foreach (TargetInfo info in config.FileTargetInfos.Values) { string filePath = Path.Combine(installPath, info.RelativePath); + if (info.Name != "WeChat.exe") + { + count++; + } if (File.Exists(filePath)) { success++; } } - if (success == config.FileTargetInfos.Count) + if (success == count) { return true; }