summaryrefslogtreecommitdiff
path: root/src/SMAPI
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2018-12-06 17:48:27 -0500
committerJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2018-12-06 17:48:27 -0500
commit05778734a21ce2a9f454ab71a455d44c9e940883 (patch)
tree07ca023da376b12e567b05a2171a13afde81bb0a /src/SMAPI
parent0a009d6fdaaac65dcac4c43fc51342dbf0d1c577 (diff)
downloadSMAPI-05778734a21ce2a9f454ab71a455d44c9e940883.tar.gz
SMAPI-05778734a21ce2a9f454ab71a455d44c9e940883.tar.bz2
SMAPI-05778734a21ce2a9f454ab71a455d44c9e940883.zip
move mod path into constants
Diffstat (limited to 'src/SMAPI')
-rw-r--r--src/SMAPI/Constants.cs5
-rw-r--r--src/SMAPI/Framework/SCore.cs4
2 files changed, 6 insertions, 3 deletions
diff --git a/src/SMAPI/Constants.cs b/src/SMAPI/Constants.cs
index b71c6195..8667b63f 100644
--- a/src/SMAPI/Constants.cs
+++ b/src/SMAPI/Constants.cs
@@ -91,9 +91,12 @@ namespace StardewModdingAPI
/// <summary>The file path which stores the detected update version for the next run.</summary>
internal static string UpdateMarker => Path.Combine(Constants.InternalFilesPath, "StardewModdingAPI.update.marker");
- /// <summary>The full path to the folder containing mods.</summary>
+ /// <summary>The default full path to search for mods.</summary>
internal static string DefaultModsPath { get; } = Path.Combine(Constants.ExecutionPath, "Mods");
+ /// <summary>The actual full path to search for mods.</summary>
+ internal static string ModsPath { get; set; }
+
/// <summary>The game's current semantic version.</summary>
internal static ISemanticVersion GameVersion { get; } = new GameVersion(Constants.GetGameVersion());
diff --git a/src/SMAPI/Framework/SCore.cs b/src/SMAPI/Framework/SCore.cs
index d4dffea5..53704bcf 100644
--- a/src/SMAPI/Framework/SCore.cs
+++ b/src/SMAPI/Framework/SCore.cs
@@ -117,7 +117,7 @@ namespace StardewModdingAPI.Framework
private readonly ModToolkit Toolkit = new ModToolkit();
/// <summary>The path to search for mods.</summary>
- private readonly string ModsPath;
+ private string ModsPath => Constants.ModsPath;
/*********
@@ -131,7 +131,7 @@ namespace StardewModdingAPI.Framework
// init paths
this.VerifyPath(modsPath);
this.VerifyPath(Constants.LogDir);
- this.ModsPath = modsPath;
+ Constants.ModsPath = modsPath;
// init log file
this.PurgeNormalLogs();