From ba75b1583afea0692e34d37f6f5245cb839e73bc Mon Sep 17 00:00:00 2001 From: zznty <94796179+zznty@users.noreply.github.com> Date: Sat, 22 Apr 2023 18:30:02 +0700 Subject: [PATCH] do not copy dlls in service mode as it can mess up with runtimes --- Torch/Utils/TorchLauncher.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Torch/Utils/TorchLauncher.cs b/Torch/Utils/TorchLauncher.cs index a16489b..5085b34 100644 --- a/Torch/Utils/TorchLauncher.cs +++ b/Torch/Utils/TorchLauncher.cs @@ -47,7 +47,7 @@ namespace Torch.Utils private static void CopyNative() { - if (ApplicationContext.Current.GameFilesDirectory.Attributes.HasFlag(FileAttributes.ReadOnly)) + if (ApplicationContext.Current.IsService || ApplicationContext.Current.GameFilesDirectory.Attributes.HasFlag(FileAttributes.ReadOnly)) { Log.Warn("Torch directory is readonly. You should copy steam_api64.dll, Havok.dll from bin manually"); return;