mirror of
https://github.com/sp-tarkov/modules.git
synced 2025-02-13 06:30:43 -05:00
Fix for ValidationUtil
This commit is contained in:
parent
e953de545d
commit
755bae830f
@ -1,5 +1,4 @@
|
|||||||
using Aki.Common.Utils;
|
using Aki.Common.Utils;
|
||||||
using BepInEx.Logging;
|
|
||||||
using Microsoft.Win32;
|
using Microsoft.Win32;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
|
|
||||||
@ -28,9 +27,9 @@ namespace Aki.Core.Utils
|
|||||||
new FileInfo(Path.Combine(v2, "UnityCrashHandler64.exe"))
|
new FileInfo(Path.Combine(v2, "UnityCrashHandler64.exe"))
|
||||||
};
|
};
|
||||||
|
|
||||||
ServerLog.Debug("Aki.Core", new FileInfo(Path.Combine(v2, "UnityCrashHandler64.exe")).Length.ToString());
|
ServerLog.Debug("Aki.Core", Gfs(v2, "UnityCrashHandler64.exe")?.Length.ToString() ?? "0");
|
||||||
ServerLog.Debug("Aki.Core", new FileInfo(Path.Combine(v2, "Uninstall.exe")).Length.ToString());
|
ServerLog.Debug("Aki.Core", Gfs(v2, "Uninstall.exe")?.Length.ToString() ?? "0");
|
||||||
ServerLog.Debug("Aki.Core", new FileInfo(Path.Combine(v2, "Register.bat")).Length.ToString());
|
ServerLog.Debug("Aki.Core", Gfs(v2, "Register.bat")?.Length.ToString() ?? "0");
|
||||||
|
|
||||||
v0 = v4.Length - 1;
|
v0 = v4.Length - 1;
|
||||||
|
|
||||||
@ -49,5 +48,11 @@ namespace Aki.Core.Utils
|
|||||||
|
|
||||||
return v0 == 0;
|
return v0 == 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private static FileInfo Gfs(string p, string f)
|
||||||
|
{
|
||||||
|
var a = Path.Combine(p, f);
|
||||||
|
return File.Exists(a) ? new FileInfo(a) : null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user