refactor: NativeAclFix => GameStart

This commit is contained in:
goaaats 2022-06-20 15:52:48 +02:00
parent ff4a292444
commit ea2277ae8f
No known key found for this signature in database
GPG key ID: 49E2AA8C6A76498B
2 changed files with 5 additions and 5 deletions

View file

@ -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)
{

View file

@ -12,9 +12,9 @@ using Serilog;
namespace Dalamud.Injector
{
/// <summary>
/// Class responsible for stripping ACL protections from processes.
/// Class responsible for starting the game and stripping ACL protections from processes.
/// </summary>
public static class NativeAclFix
public static class GameStart
{
/// <summary>
/// Start a process without ACL protections.