feat: add wndproc nullref fix

This commit is contained in:
goaaats 2022-05-26 01:43:10 +02:00
parent 3cf47f7ec4
commit baad575c53
No known key found for this signature in database
GPG key ID: 49E2AA8C6A76498B
7 changed files with 112 additions and 3 deletions

View file

@ -7,6 +7,7 @@ using System.Threading;
using Dalamud.Configuration.Internal;
using Dalamud.Data;
using Dalamud.Fixes;
using Dalamud.Game;
using Dalamud.Game.ClientState;
using Dalamud.Game.Command;
@ -102,6 +103,10 @@ namespace Dalamud
Service<SigScanner>.Set(new SigScanner(true));
Service<HookManager>.Set();
// Initialize game fixes
var gameFixes = Service<GameFixes>.Set();
gameFixes.Apply();
// Initialize FFXIVClientStructs function resolver
FFXIVClientStructs.Resolver.Initialize();
Log.Information("[T1] FFXIVClientStructs initialized!");
@ -347,6 +352,8 @@ namespace Dalamud
Service<Framework>.GetNullable()?.ExplicitDispose();
Service<ClientState>.GetNullable()?.ExplicitDispose();
Service<GameFixes>.GetNullable()?.ExplicitDispose();
this.unloadSignal?.Dispose();
Service<WinSockHandlers>.GetNullable()?.Dispose();