mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-02-24 13:41:49 +01:00
Merge 3b94b14705 into bef50438f5
This commit is contained in:
commit
a125b80d7c
1 changed files with 10 additions and 0 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue