public static void Init() { try { if (Log == null) // First run { Setup(); ModScanner.BuildModList(); ModPhases.LoadMods("SplashMod"); PatchMenuCrt(); if (Patcher == null) { Log.Log(SourceLevels.Critical, "Cannot patch game with Harmony. Non-SplashMods will not be loaded."); } } } catch (Exception ex) { if (Log == null) { Console.WriteLine(ex); } else { Log.Error(ex); } } }
private static void MainPhase() { ModPhases.LoadMods("Init"); // PPML v0.1 ModPhases.LoadMods("Initialize"); // PPML v0.2 ModPhases.LoadMods("MainMod"); // Modnix }