move mod path into constants
This commit is contained in:
parent
0a009d6fda
commit
05778734a2
|
@ -91,9 +91,12 @@ namespace StardewModdingAPI
|
||||||
/// <summary>The file path which stores the detected update version for the next run.</summary>
|
/// <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");
|
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");
|
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>
|
/// <summary>The game's current semantic version.</summary>
|
||||||
internal static ISemanticVersion GameVersion { get; } = new GameVersion(Constants.GetGameVersion());
|
internal static ISemanticVersion GameVersion { get; } = new GameVersion(Constants.GetGameVersion());
|
||||||
|
|
||||||
|
|
|
@ -117,7 +117,7 @@ namespace StardewModdingAPI.Framework
|
||||||
private readonly ModToolkit Toolkit = new ModToolkit();
|
private readonly ModToolkit Toolkit = new ModToolkit();
|
||||||
|
|
||||||
/// <summary>The path to search for mods.</summary>
|
/// <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
|
// init paths
|
||||||
this.VerifyPath(modsPath);
|
this.VerifyPath(modsPath);
|
||||||
this.VerifyPath(Constants.LogDir);
|
this.VerifyPath(Constants.LogDir);
|
||||||
this.ModsPath = modsPath;
|
Constants.ModsPath = modsPath;
|
||||||
|
|
||||||
// init log file
|
// init log file
|
||||||
this.PurgeNormalLogs();
|
this.PurgeNormalLogs();
|
||||||
|
|
Loading…
Reference in New Issue