mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-02-16 12:57:44 +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.SigScanner = new SigScanner(this.TargetModule, true);
|
||||||
this.HookManager = new HookManager(this);
|
this.HookManager = new HookManager(this);
|
||||||
|
|
||||||
|
// Initialize FFXIVClientStructs function resolver
|
||||||
|
FFXIVClientStructs.Resolver.Initialize();
|
||||||
|
Log.Information("[T1] FFXIVClientStructs initialized!");
|
||||||
|
|
||||||
// Initialize game subsystem
|
// Initialize game subsystem
|
||||||
this.Framework = new Framework(this.SigScanner, this);
|
this.Framework = new Framework(this.SigScanner, this);
|
||||||
|
|
||||||
|
|
@ -232,11 +236,6 @@ namespace Dalamud
|
||||||
|
|
||||||
this.Framework.Enable();
|
this.Framework.Enable();
|
||||||
Log.Information("[T1] Framework ENABLE!");
|
Log.Information("[T1] Framework ENABLE!");
|
||||||
|
|
||||||
// Initialize FFXIVClientStructs function resolver
|
|
||||||
FFXIVClientStructs.Resolver.Initialize();
|
|
||||||
|
|
||||||
Log.Information("[T1] FFXIVClientStructs initialized!");
|
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue