From 00e2990d1524eee649351984c2e0cf802eb57f50 Mon Sep 17 00:00:00 2001 From: Arne Kiesewetter Date: Sun, 10 Mar 2024 22:43:02 +0100 Subject: [PATCH] Add missing mod ran event --- MonkeyLoader/MonkeyLoader.cs | 8 ++++++++ MonkeyLoader/MonkeyLoader.csproj | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/MonkeyLoader/MonkeyLoader.cs b/MonkeyLoader/MonkeyLoader.cs index 255b3dc..1f565ed 100644 --- a/MonkeyLoader/MonkeyLoader.cs +++ b/MonkeyLoader/MonkeyLoader.cs @@ -592,6 +592,9 @@ public void RunMods(params Mod[] mods) LoadMonkeys(mods); RunMonkeys(mods); + + foreach (var mod in mods) + ModRan?.TryInvokeAll(this, mod); } /// @@ -925,6 +928,11 @@ private bool TryLoadMod(string path, [NotNullWhen(true)] out NuGetPackageMod? mo /// public event ModsChangedEventHandler? ModAdded; + /// + /// Called after a has been ran by this loader. + /// + public event ModsChangedEventHandler? ModRan; + /// /// Called after a has been shut down by this loader. /// diff --git a/MonkeyLoader/MonkeyLoader.csproj b/MonkeyLoader/MonkeyLoader.csproj index 04a7e37..c8fa89b 100644 --- a/MonkeyLoader/MonkeyLoader.csproj +++ b/MonkeyLoader/MonkeyLoader.csproj @@ -11,7 +11,7 @@ True MonkeyLoader Banane9 - 0.7.0-beta + 0.7.1-beta A convenience and extendability focused mod loader using NuGet packages. README.md LGPL-3.0-or-later