Skip to content

Commit

Permalink
add ModStamp because this mod doesnt depend on reactor XD
Browse files Browse the repository at this point in the history
  • Loading branch information
XtraCube committed Apr 16, 2024
1 parent a600973 commit d67ac9e
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion SmolMod/SmolModPlugin.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
using BepInEx;
using System;
using BepInEx;
using BepInEx.Configuration;
using BepInEx.Unity.IL2CPP;
using HarmonyLib;
using UnityEngine.SceneManagement;

namespace SmolMod;

Expand All @@ -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, LoadSceneMode>) ((scene, _) =>
{
if (scene.name == "MainMenu")
{
ModManager.Instance.ShowModStamp();
}
}));
}
}

0 comments on commit d67ac9e

Please sign in to comment.