From d67ac9ec87fe23b926c76aa2090b3f3c3faefe7b Mon Sep 17 00:00:00 2001 From: XtraCube Date: Mon, 15 Apr 2024 20:26:24 -0400 Subject: [PATCH] add ModStamp because this mod doesnt depend on reactor XD --- SmolMod/SmolModPlugin.cs | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/SmolMod/SmolModPlugin.cs b/SmolMod/SmolModPlugin.cs index 2d55e21..ad20c57 100644 --- a/SmolMod/SmolModPlugin.cs +++ b/SmolMod/SmolModPlugin.cs @@ -1,7 +1,9 @@ -using BepInEx; +using System; +using BepInEx; using BepInEx.Configuration; using BepInEx.Unity.IL2CPP; using HarmonyLib; +using UnityEngine.SceneManagement; namespace SmolMod; @@ -19,5 +21,14 @@ public override void Load() { ConfigScale = Config.Bind("Scale", "GlobalModifier", 1.5f, "Scale modifier used for SmolMod scaling"); Harmony.PatchAll(); + + // taken out of reactor, but this mod doesn't depend on reactor, so that's why its here + SceneManager.add_sceneLoaded((Action) ((scene, _) => + { + if (scene.name == "MainMenu") + { + ModManager.Instance.ShowModStamp(); + } + })); } }