summaryrefslogtreecommitdiff
path: root/src/StardewModdingAPI/Program.cs
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <github@jplamondonw.com>2016-11-04 16:14:14 -0400
committerJesse Plamondon-Willard <github@jplamondonw.com>2016-11-04 16:14:14 -0400
commit7fe6dafbaa0b01bf18b4973e2f537cbe1b002c1e (patch)
tree9a9f0cc4baf65d925c16ac2e744422dfb7fbd02f /src/StardewModdingAPI/Program.cs
parent532235ef10525a8d2997a512b0b0acb408db2fb8 (diff)
downloadSMAPI-7fe6dafbaa0b01bf18b4973e2f537cbe1b002c1e.tar.gz
SMAPI-7fe6dafbaa0b01bf18b4973e2f537cbe1b002c1e.tar.bz2
SMAPI-7fe6dafbaa0b01bf18b4973e2f537cbe1b002c1e.zip
move 'mods loaded' out of constants
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;
}