July 14, 2021 Modding with Harmony Monster Train Title: Harmony ParDeike - Reverse Patch By: Harmony Harmony - Documentation Description: Harmony documentation on patching with the Reverse Patch. Overview I was investigating ways to use Harmony to access private methods and fields from classes within the Unity target game itself, Monster Train in this case. One of the first direct options I came across was using reverse patches. Basics of the Reverse Patch "A reverse patch is a stub method in your own code that 'becomes' the original or part of the original method so you can use that yourself." Typical use cases: easily call private methods no reflection, no delegate, native performance you can cherry-pick part of the original method by using a transpiler can give you the unmodified original will freeze the implementation to the time you reverse patch Implementation After seeing its first use case being calling private ...
Comments
Post a Comment