public Mod(ModContentPack content) : base(content) { HarmonyInstance femboyfoxes = HarmonyInstance.Create("neon.rimworld.rimrpc.main"); MethodInfo targetmethod = AccessTools.Method(typeof(Verse.GenScene), "GoToMainMenu"); HarmonyMethod postfixmethod = new HarmonyMethod(typeof(RimRPC).GetMethod("GoToMainMenu_Postfix")); femboyfoxes.Patch(targetmethod, null, postfixmethod); Log.Message("[RichPresence] Patched"); RimRPC.BootMeUp(); }
public Mod(ModContentPack content) : base(content) { var femboyfoxes = new Harmony("weilbyte.rimworld.rimrpc"); MethodInfo targetmethod = AccessTools.Method(typeof(Verse.GenScene), "GoToMainMenu"); HarmonyMethod postfixmethod = new HarmonyMethod(typeof(RimRPC).GetMethod("GoToMainMenu_Postfix")); femboyfoxes.Patch(targetmethod, null, postfixmethod); Log.Message("RichPresence :: Patched"); RimRPC.BootMeUp(); }