Skip to content
This repository has been archived by the owner on Oct 16, 2024. It is now read-only.

Commit

Permalink
kino
Browse files Browse the repository at this point in the history
  • Loading branch information
misandrie committed Oct 5, 2024
1 parent f2d3274 commit 2de5182
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions Marsey/Stealthsey/Reflection/HideseyAttributeManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,8 @@ private static void SetPatchless(MethodInfo method)
if (method.GetCustomAttribute<Patching>() is null) return;
if (method.IsGenericMethod) throw new InvalidOperationException("Patching attribute not allowed on generic methods.");

Console.WriteLine($"Trying to patch {method.Name}");

MethodInfo? prefix = AccessTools.Method(typeof(HideseyPatches), nameof(HideseyPatches.SkipPatchless));

Manual.Patch(method, prefix, HarmonyPatchType.Prefix);

Console.WriteLine($"Patched {method.Name} fine");
}
}

0 comments on commit 2de5182

Please sign in to comment.