summaryrefslogtreecommitdiff
path: root/src/StardewModdingAPI/Program.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/StardewModdingAPI/Program.cs')
-rw-r--r--src/StardewModdingAPI/Program.cs7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/StardewModdingAPI/Program.cs b/src/StardewModdingAPI/Program.cs
index 2908de8f..3bfaee0d 100644
--- a/src/StardewModdingAPI/Program.cs
+++ b/src/StardewModdingAPI/Program.cs
@@ -18,6 +18,9 @@ namespace StardewModdingAPI
{
public class Program
{
+ /// <summary>The number of mods currently loaded by SMAPI.</summary>
+ public static int ModsLoaded = 0;
+
/// <summary>The full path to the Stardew Valley executable.</summary>
private static readonly string GameExecutablePath = File.Exists(Path.Combine(Constants.ExecutionPath, "StardewValley.exe"))
? Path.Combine(Constants.ExecutionPath, "StardewValley.exe") // Linux or Mac
@@ -314,7 +317,7 @@ namespace StardewModdingAPI
modEntry.PathOnDisk = targDir;
modEntry.Manifest = manifest;
Log.AsyncG($"LOADED MOD: {modEntry.Manifest.Name} by {modEntry.Manifest.Author} - Version {modEntry.Manifest.Version} | Description: {modEntry.Manifest.Description} (@ {targDll})");
- Constants.ModsLoaded += 1;
+ Program.ModsLoaded += 1;
modEntry.Entry();
}
}
@@ -328,7 +331,7 @@ namespace StardewModdingAPI
}
}
- Log.AsyncG($"LOADED {Constants.ModsLoaded} MODS");
+ Log.AsyncG($"LOADED {Program.ModsLoaded} MODS");
Console.Title = Constants.ConsoleTitle;
}