how to reference original class and patch class with same name separately

Viewed 21

I'm trying to prefix patch a class with harmony, but in order for it to work, I need the new class to be the same name as the original. I can't get it to work without harmony being unable to find the original class. Here's what the original and patch look like :

MethodInfo original = AccessTools.Method(typeof(MenuMenuState), "Start");
MethodInfo patch = AccessTools.Method(typeof(MenuMenuState), "Start_MyPatch");

(sorry I'm rather new and don't know a lot of the terminology and have been trying to find a working answer for a while now)

0 Answers
Related