mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-13 12:14:16 +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
|
try
|
||||||
{
|
{
|
||||||
NativeAclFix.ClaimSeDebug();
|
GameStart.ClaimSeDebug();
|
||||||
Log.Information("SeDebugPrivilege claimed.");
|
Log.Information("SeDebugPrivilege claimed.");
|
||||||
}
|
}
|
||||||
catch (Win32Exception e2)
|
catch (Win32Exception e2)
|
||||||
|
|
@ -593,7 +593,7 @@ namespace Dalamud.Injector
|
||||||
}
|
}
|
||||||
|
|
||||||
var gameArgumentString = string.Join(" ", gameArguments.Select(x => EncodeParameterArgument(x)));
|
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")
|
if (!withoutDalamud && mode == "entrypoint")
|
||||||
{
|
{
|
||||||
|
|
@ -696,7 +696,7 @@ namespace Dalamud.Injector
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
NativeAclFix.CopyAclFromSelfToTargetProcess(process.SafeHandle.DangerousGetHandle());
|
GameStart.CopyAclFromSelfToTargetProcess(process.SafeHandle.DangerousGetHandle());
|
||||||
}
|
}
|
||||||
catch (Win32Exception e1)
|
catch (Win32Exception e1)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -12,9 +12,9 @@ using Serilog;
|
||||||
namespace Dalamud.Injector
|
namespace Dalamud.Injector
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Class responsible for stripping ACL protections from processes.
|
/// Class responsible for starting the game and stripping ACL protections from processes.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public static class NativeAclFix
|
public static class GameStart
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Start a process without ACL protections.
|
/// Start a process without ACL protections.
|
||||||
Loading…
Add table
Add a link
Reference in a new issue