From ea2277ae8f0113df70da4a1015ff07bac0ce0c42 Mon Sep 17 00:00:00 2001 From: goaaats Date: Mon, 20 Jun 2022 15:52:48 +0200 Subject: [PATCH] refactor: NativeAclFix => GameStart --- Dalamud.Injector/EntryPoint.cs | 6 +++--- Dalamud.Injector/{NativeAclFix.cs => GameStart.cs} | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) rename Dalamud.Injector/{NativeAclFix.cs => GameStart.cs} (99%) diff --git a/Dalamud.Injector/EntryPoint.cs b/Dalamud.Injector/EntryPoint.cs index 48d86d160..e25dc1471 100644 --- a/Dalamud.Injector/EntryPoint.cs +++ b/Dalamud.Injector/EntryPoint.cs @@ -450,7 +450,7 @@ namespace Dalamud.Injector { try { - NativeAclFix.ClaimSeDebug(); + GameStart.ClaimSeDebug(); Log.Information("SeDebugPrivilege claimed."); } catch (Win32Exception e2) @@ -593,7 +593,7 @@ namespace Dalamud.Injector } var gameArgumentString = string.Join(" ", gameArguments.Select(x => EncodeParameterArgument(x))); - var process = NativeAclFix.LaunchGame(Path.GetDirectoryName(gamePath), gamePath, gameArgumentString, noFixAcl, (Process p) => + var process = GameStart.LaunchGame(Path.GetDirectoryName(gamePath), gamePath, gameArgumentString, noFixAcl, (Process p) => { if (!withoutDalamud && mode == "entrypoint") { @@ -696,7 +696,7 @@ namespace Dalamud.Injector { try { - NativeAclFix.CopyAclFromSelfToTargetProcess(process.SafeHandle.DangerousGetHandle()); + GameStart.CopyAclFromSelfToTargetProcess(process.SafeHandle.DangerousGetHandle()); } catch (Win32Exception e1) { diff --git a/Dalamud.Injector/NativeAclFix.cs b/Dalamud.Injector/GameStart.cs similarity index 99% rename from Dalamud.Injector/NativeAclFix.cs rename to Dalamud.Injector/GameStart.cs index 5f14bce26..e924fad23 100644 --- a/Dalamud.Injector/NativeAclFix.cs +++ b/Dalamud.Injector/GameStart.cs @@ -12,9 +12,9 @@ using Serilog; namespace Dalamud.Injector { /// - /// Class responsible for stripping ACL protections from processes. + /// Class responsible for starting the game and stripping ACL protections from processes. /// - public static class NativeAclFix + public static class GameStart { /// /// Start a process without ACL protections.