diff --git a/CustomizePlus/Core/Services/HookingService.cs b/CustomizePlus/Core/Services/HookingService.cs index 5945f07..363478f 100644 --- a/CustomizePlus/Core/Services/HookingService.cs +++ b/CustomizePlus/Core/Services/HookingService.cs @@ -11,6 +11,8 @@ using CustomizePlus.Armatures.Services; using CustomizePlus.GameData.Data; using Penumbra.GameData.Interop; +using Dalamud.Plugin; +using CustomizePlus.Core.Helpers; namespace CustomizePlus.Core.Services; @@ -55,6 +57,15 @@ public HookingService( ReloadHooks(); } + public void Dispose() + { + _gameObjectMovementHook?.Disable(); + _gameObjectMovementHook?.Dispose(); + + _renderManagerHook?.Disable(); + _renderManagerHook?.Dispose(); + } + public void ReloadHooks() { RenderHookFailed = false; @@ -150,13 +161,4 @@ private unsafe void OnGameObjectMove(nint gameObjectPtr) _gameObjectMovementHook?.Disable(); } } - - public void Dispose() - { - _gameObjectMovementHook?.Disable(); - _gameObjectMovementHook?.Dispose(); - - _renderManagerHook?.Disable(); - _renderManagerHook?.Dispose(); - } } diff --git a/CustomizePlus/UI/Windows/CPlusChangeLog.cs b/CustomizePlus/UI/Windows/CPlusChangeLog.cs index 50568fc..7f118e7 100644 --- a/CustomizePlus/UI/Windows/CPlusChangeLog.cs +++ b/CustomizePlus/UI/Windows/CPlusChangeLog.cs @@ -59,8 +59,8 @@ private static void Add2_0_7_0(Changelog log) .RegisterEntry("Added option to configure if Customize+ windows will be hidden when you enter GPose or not.", 1) .RegisterEntry("Added option to configure if Customize+ main window will be automatically opened when you launch the game or not.", 1) - .RegisterImportant("Added warning for custom skeleton bones. If you have custom skeleton installed - read it. Seriously. It's a wrench icon near those bones.") - .RegisterEntry("Added warning for testing builds.") + .RegisterImportant("Added warning for custom skeleton bones. If you have custom skeleton installed - read it. Seriously. It's a wrench icon near the name of those bones.") + .RegisterEntry("Added warnings for testing builds in various places.") .RegisterImportant("IPC notes, developers only.") .RegisterImportant("IPC version is now 6.0.", 1)