From 36d90e7a875490b7993a39ebec36ef1af0a53661 Mon Sep 17 00:00:00 2001 From: Ottermandias Date: Sat, 7 Oct 2023 15:55:30 +0200 Subject: [PATCH] Make Archon happy. --- Glamourer/Events/GPoseService.cs | 9 +++------ Glamourer/Interop/ChangeCustomizeService.cs | 5 ++--- Glamourer/Services/ServiceManager.cs | 1 + OtterGui | 2 +- 4 files changed, 7 insertions(+), 10 deletions(-) diff --git a/Glamourer/Events/GPoseService.cs b/Glamourer/Events/GPoseService.cs index e869cf4..7403754 100644 --- a/Glamourer/Events/GPoseService.cs +++ b/Glamourer/Events/GPoseService.cs @@ -5,7 +5,7 @@ using OtterGui.Classes; namespace Glamourer.Events; -public class GPoseService : EventWrapper, GPoseService.Priority> +public sealed class GPoseService : EventWrapper, GPoseService.Priority> { private readonly IFramework _framework; private readonly IClientState _state; @@ -30,11 +30,8 @@ public class GPoseService : EventWrapper, GPoseService.Priority> _framework.Update += OnFramework; } - public new void Dispose() - { - _framework.Update -= OnFramework; - base.Dispose(); - } + protected override void Dispose(bool _) + => _framework.Update -= OnFramework; public void AddActionOnLeave(Action onLeave) { diff --git a/Glamourer/Interop/ChangeCustomizeService.cs b/Glamourer/Interop/ChangeCustomizeService.cs index f2f2696..0b6f2fb 100644 --- a/Glamourer/Interop/ChangeCustomizeService.cs +++ b/Glamourer/Interop/ChangeCustomizeService.cs @@ -17,7 +17,7 @@ namespace Glamourer.Interop; /// Changes in Race, body type or Gender are probably ignored. /// This operates on draw objects, not game objects. /// -public unsafe class ChangeCustomizeService : EventWrapper>, ChangeCustomizeService.Priority>, IDisposable +public unsafe class ChangeCustomizeService : EventWrapper>, ChangeCustomizeService.Priority> { private readonly PenumbraReloaded _penumbraReloaded; private readonly IGameInteropProvider _interop; @@ -40,9 +40,8 @@ public unsafe class ChangeCustomizeService : EventWrapper