Skip to content

Commit

Permalink
Cleanup, updated changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
RisaDev committed Oct 25, 2024
1 parent 85dede2 commit 007a593
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 11 deletions.
20 changes: 11 additions & 9 deletions CustomizePlus/Core/Services/HookingService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -55,6 +57,15 @@ public HookingService(
ReloadHooks();
}

public void Dispose()
{
_gameObjectMovementHook?.Disable();
_gameObjectMovementHook?.Dispose();

_renderManagerHook?.Disable();
_renderManagerHook?.Dispose();
}

public void ReloadHooks()
{
RenderHookFailed = false;
Expand Down Expand Up @@ -150,13 +161,4 @@ private unsafe void OnGameObjectMove(nint gameObjectPtr)
_gameObjectMovementHook?.Disable();
}
}

public void Dispose()
{
_gameObjectMovementHook?.Disable();
_gameObjectMovementHook?.Dispose();

_renderManagerHook?.Disable();
_renderManagerHook?.Dispose();
}
}
4 changes: 2 additions & 2 deletions CustomizePlus/UI/Windows/CPlusChangeLog.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 007a593

Please sign in to comment.