public static void StartModLoader() { if (loaded) { return; } loaded = true; Debug.Log("[UM4SN] Mod loader loaded (WARPER)"); Debug.Log("[UM4SN] Looking in: " + new FileInfo(@".\SNUnityMod\").FullName); mods = LoadPlugins(new FileInfo(@".\SNUnityMod\").FullName); Patcher.PatchAll(SubPatchType.Internal); }
public static void Prefix(uGUI_MainMenu __instance) { new GameObject().AddComponent <MainMenuModsButton>(); Patcher.PatchAll(SubPatchType.ModInitialize); }