[#] 针对老版本微信的兼容代码

This commit is contained in:
huiyadanli 2022-05-17 22:36:21 +08:00
parent 8eb032e339
commit c2e608056d

View File

@ -146,16 +146,20 @@ namespace RevokeMsgPatcher.Modifier
{ {
return false; return false;
} }
int success = 0; int success = 0, count = 0;
foreach (TargetInfo info in config.FileTargetInfos.Values) foreach (TargetInfo info in config.FileTargetInfos.Values)
{ {
string filePath = Path.Combine(installPath, info.RelativePath); string filePath = Path.Combine(installPath, info.RelativePath);
if (info.Name != "WeChat.exe")
{
count++;
}
if (File.Exists(filePath)) if (File.Exists(filePath))
{ {
success++; success++;
} }
} }
if (success == config.FileTargetInfos.Count) if (success == count)
{ {
return true; return true;
} }