Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactored the ASM patch system #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

xcube16
Copy link

@xcube16 xcube16 commented Jun 21, 2021

I have refactored the asm patcher system to make it easier to write patches as well as make it cleaner overall. Annotated classes with annotated static functions have replaced the use of IPatchManager and IPatch thingys (see classes in com.charles445.rltweaker.asm.patch). RLTweakerASM as passed as an extra argument to each patch function for future logging support (TODO: replace the System.out.println() statements). I know this feels at first like I have fixed something that is not broken, but have a look around and I think you will like it.

There might be some formatting concerns. Let me know if you want it to strictly adhere to the format that you use.

Cleaned up ASMConfig
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant