示例#1
0
 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);
 }
示例#2
0
 public static void Prefix(uGUI_MainMenu __instance)
 {
     new GameObject().AddComponent <MainMenuModsButton>();
     Patcher.PatchAll(SubPatchType.ModInitialize);
 }