mirror of
https://github.com/huiyadanli/RevokeMsgPatcher.git
synced 2025-05-24 06:26:06 +08:00
[#] 针对老版本微信的兼容代码
This commit is contained in:
parent
8eb032e339
commit
c2e608056d
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user