feat: continuously check for game window, don't use WaitForInputIdle(), throw exception if timeout

This commit is contained in:
goaaats 2022-06-20 15:50:32 +02:00
parent c3e16ad92c
commit bd7f3f6033
No known key found for this signature in database
GPG key ID: 49E2AA8C6A76498B
2 changed files with 35 additions and 16 deletions

View file

@ -604,9 +604,13 @@ namespace Dalamud.Injector
Log.Error("[HOOKS] RewriteRemoteEntryPointW failed");
throw new Exception("RewriteRemoteEntryPointW failed");
}
Log.Verbose("RewriteRemoteEntryPointW called!");
}
});
Log.Verbose("Game process started with PID {0}", process.Id);
if (!withoutDalamud && mode == "inject")
{
var startInfo = AdjustStartInfo(dalamudStartInfo, gamePath);