public static void Init() { try { if (Log != null) { return; } Setup(); ModScanner.BuildModList(); ModPhases.RunPhase("SplashMod"); if (!GamePatcher.PatchPhases()) { Log.Log(SourceLevels.Critical, "Cannot patch game with Harmony. Non-SplashMods may not be loaded."); } } catch (Exception ex) { if (Log == null) { Console.WriteLine(ex); } else { Log.Error(ex); } } }
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); } } }