Rework codes and fun a bit.

This commit is contained in:
Ottermandias 2023-12-26 17:29:45 +01:00
parent 1fa9afb9c6
commit dd5c56de9d
9 changed files with 269 additions and 197 deletions

View file

@ -18,7 +18,6 @@ public class VisorService : IDisposable
{
Event = visorStateChanged;
_setupVisorHook = interop.HookFromAddress<UpdateVisorDelegateInternal>((nint)Human.MemberFunctionPointers.SetupVisor, SetupVisorDetour);
interop.InitializeFromAttributes(this);
_setupVisorHook.Enable();
}