修复文件判断错误的问题 #732

This commit is contained in:
辉鸭蛋 2024-06-16 00:09:00 +08:00
parent 1b6f827afe
commit 823638f30c

View File

@ -107,7 +107,7 @@ namespace RevokeMsgPatcher.Modifier
// 正则 require\(String.raw`.*`\);
string pattern = @"require\(String.raw`.*`\);";
string liteLoaderPath = GetLiteLoaderPath();
if (!File.Exists(liteLoaderPath))
if (!Directory.Exists(liteLoaderPath))
{
MessageBox.Show("LiteLoaderQQNT文件夹不存在仅安装QQNT去验证补丁", "警告", MessageBoxButtons.OK, MessageBoxIcon.Warning);
return;