From bc07ee96c7a5886761d7b0ed796a92ec9214711b Mon Sep 17 00:00:00 2001 From: Rutherther Date: Tue, 14 Feb 2023 13:59:33 +0100 Subject: [PATCH] fix(binding): fix periodic hook wrapper function to return empty --- .../Hooks/Implementations/PeriodicHook.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Core/NosSmooth.LocalBinding/Hooks/Implementations/PeriodicHook.cs b/src/Core/NosSmooth.LocalBinding/Hooks/Implementations/PeriodicHook.cs index 519c0c5..afed8ef 100644 --- a/src/Core/NosSmooth.LocalBinding/Hooks/Implementations/PeriodicHook.cs +++ b/src/Core/NosSmooth.LocalBinding/Hooks/Implementations/PeriodicHook.cs @@ -41,7 +41,7 @@ internal class PeriodicHook : IPeriodicHook private NosAsmHook _hook = null!; /// - public bool IsUsable => WrapperFunction.IsPresent; + public bool IsUsable => true; /// public string Name => IHookManager.PeriodicName; @@ -50,7 +50,7 @@ internal class PeriodicHook : IPeriodicHook public bool IsEnabled => _hook.Hook.IsEnabled; /// - public Optional WrapperFunction => OriginalFunction; + public Optional WrapperFunction => Optional.Empty; /// public IPeriodicHook.PeriodicDelegate OriginalFunction => throw new InvalidOperationException -- 2.48.1