AssemblyPatcher
WIP - Assembly Patcher using dnlib
Install / Use
/learn @kavengagne/AssemblyPatcherREADME
####AssemblyPatcher
PatcherBase, SelectorBase
- Allows creation of custom patchers. (
MethodPatcher,PropertyPatcher,FieldPatcher) - Use
PatcherBaseas a starting point. - Create a marker interface to make
AddPatchtype-safe. - Create a Selector using
SelectorBaseto allow custom member selection.
IPatch, PatchBase
- Allows creation of custom patches for the Patchers. (
LogMethodNamePatch,LogMethodParametersPatch). - Use
PatchBaseas a starting point.
Custom IPatch Example
- Declaration
public interface IMethodPatch : IPatch { }
public class LogMethodNamePatch : PatchBase, IMethodPatch { }
public class LogMethodParametersPatch : PatchBase, IMethodPatch { }
- Usage
var methodPatcher = new MethodPatcher(typeof(Calculator).Module);
methodPatcher.AddPatch(new LogMethodNamePatch());
methodPatcher.AddPatch(new LogMethodParametersPatch());
methodPatcher.AppliesTo(typeof(Calculator)).AppliesTo("Add", "Sub");
methodPatcher.ApplyPatches();
Related Skills
node-connect
338.0kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
83.4kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
338.0kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
commit-push-pr
83.4kCommit, push, and open a PR
