From fbef0eae48577726fa830792ca1ce953ddd3d797 Mon Sep 17 00:00:00 2001 From: Dev Date: Tue, 19 Dec 2023 20:44:13 +0000 Subject: [PATCH] Fix build issue --- project/Aki.Core/Utils/ValidationUtil.cs | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/project/Aki.Core/Utils/ValidationUtil.cs b/project/Aki.Core/Utils/ValidationUtil.cs index dac3609..c1a6f31 100644 --- a/project/Aki.Core/Utils/ValidationUtil.cs +++ b/project/Aki.Core/Utils/ValidationUtil.cs @@ -17,19 +17,21 @@ namespace Aki.Core.Utils var v1 = Registry.LocalMachine.OpenSubKey(c0, false).GetValue("InstallLocation"); var v2 = (v1 != null) ? v1.ToString() : string.Empty; var v3 = new DirectoryInfo(v2); - ServerLog.Debug("Aki.Core", v2); - ServerLog.Debug("Aki.Core", string.IsNullOrEmpty(v2) ? "0" : v3.Length.ToString()); + var v4 = new FileSystemInfo[] { v3, - new FileInfo(Path.Join(v2, @"BattlEye\BEClient_x64.dll")), - new FileInfo(Path.Join(v2, @"BattlEye\BEService_x64.dll")), - new FileInfo(Path.Join(v2, "ConsistencyInfo")), - new FileInfo(Path.Join(v2, "Uninstall.exe")), - new FileInfo(Path.Join(v2, "UnityCrashHandler64.exe")) + new FileInfo(Path.Combine(v2, @"BattlEye\BEClient_x64.dll")), + new FileInfo(Path.Combine(v2, @"BattlEye\BEService_x64.dll")), + new FileInfo(Path.Combine(v2, "ConsistencyInfo")), + new FileInfo(Path.Combine(v2, "Uninstall.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", new FileInfo(Path.Combine(v2, "Uninstall.exe")).Length.ToString()); + v0 = v4.Length - 1; foreach (var value in v4)