mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 10:17:22 +01:00
fix: move client structs init before framework init, fixes potential race condition
This commit is contained in:
parent
95d891c6d5
commit
1333ea7a72
1 changed files with 4 additions and 5 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue