fix: move client structs init before framework init, fixes potential race condition

This commit is contained in:
goat 2021-08-20 15:51:13 +02:00
parent 95d891c6d5
commit 1333ea7a72
No known key found for this signature in database
GPG key ID: F18F057873895461

View file

@ -225,6 +225,10 @@ namespace Dalamud
this.SigScanner = new SigScanner(this.TargetModule, true);
this.HookManager = new HookManager(this);
// Initialize FFXIVClientStructs function resolver
FFXIVClientStructs.Resolver.Initialize();
Log.Information("[T1] FFXIVClientStructs initialized!");
// Initialize game subsystem
this.Framework = new Framework(this.SigScanner, this);
@ -232,11 +236,6 @@ namespace Dalamud
this.Framework.Enable();
Log.Information("[T1] Framework ENABLE!");
// Initialize FFXIVClientStructs function resolver
FFXIVClientStructs.Resolver.Initialize();
Log.Information("[T1] FFXIVClientStructs initialized!");
}
catch (Exception ex)
{