This commit is contained in:
Glorou 2026-02-17 23:34:21 +01:00 committed by GitHub
commit a125b80d7c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -657,6 +657,7 @@ namespace Dalamud.Injector
var noFixAcl = false;
var waitForGameWindow = true;
var encryptArguments = false;
var pauseAfterInit = false;
var parsingGameArgument = false;
for (var i = 2; i < args.Count; i++)
@ -707,6 +708,10 @@ namespace Dalamud.Injector
{
handleOwner = IntPtr.Parse(args[i].Split('=', 2)[1]);
}
else if (args[i] == "--pause-after-process-init")
{
pauseAfterInit = true;
}
else if (args[i] == "--")
{
parsingGameArgument = true;
@ -916,6 +921,11 @@ namespace Dalamud.Injector
RewriteRemoteEntryPointW(p.Handle, gamePath, JsonConvert.SerializeObject(startInfo)));
Log.Verbose("RewriteRemoteEntryPointW called!");
}
if (pauseAfterInit)
{
Windows.Win32.PInvoke.MessageBox(HWND.Null, $"Press OK to continue\r\nffxiv_dx11.exe PID is {p.Id}.", "Dalamud Boot", MESSAGEBOX_STYLE.MB_OK);
}
},
waitForGameWindow);