mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 18:27:23 +01:00
refactor: NativeAclFix => GameStart
This commit is contained in:
parent
ff4a292444
commit
ea2277ae8f
2 changed files with 5 additions and 5 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
Loading…
Add table
Add a link
Reference in a new issue