diff options
-rw-r--r-- | src/StardewModdingAPI/Constants.cs | 28 |
1 files changed, 17 insertions, 11 deletions
diff --git a/src/StardewModdingAPI/Constants.cs b/src/StardewModdingAPI/Constants.cs index c71401b1..438c869c 100644 --- a/src/StardewModdingAPI/Constants.cs +++ b/src/StardewModdingAPI/Constants.cs @@ -26,24 +26,21 @@ namespace StardewModdingAPI /********* ** Accessors *********/ + /**** + ** Public + ****/ /// <summary>SMAPI's current semantic version.</summary> public static ISemanticVersion ApiVersion => new SemanticVersion(1, 8, 0, null); /// <summary>The minimum supported version of Stardew Valley.</summary> public const string MinimumGameVersion = "1.2"; - /// <summary>The GitHub repository to check for updates.</summary> - public const string GitHubRepository = "Pathoschild/SMAPI"; - /// <summary>The directory path containing Stardew Valley's app data.</summary> public static string DataPath => Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "StardewValley"); /// <summary>The directory path where all saves are stored.</summary> public static string SavesPath => Path.Combine(Constants.DataPath, "Saves"); - /// <summary>Whether the directory containing the current save's data exists on disk.</summary> - public static bool CurrentSavePathExists => Directory.Exists(Constants.RawSavePath); - /// <summary>The directory name containing the current save's data (if a save is loaded and the directory exists).</summary> public static string SaveFolderName => Constants.CurrentSavePathExists ? Constants.RawSaveFolderName : ""; @@ -56,14 +53,17 @@ namespace StardewModdingAPI /// <summary>The path to the current assembly being executing.</summary> public static string ExecutionPath => Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location); - /// <summary>The title of the SMAPI console window.</summary> - public static string ConsoleTitle => $"Stardew Modding API Console - Version {Constants.ApiVersion} - Mods Loaded: {Program.ModsLoaded}"; - /// <summary>The directory path in which error logs should be stored.</summary> public static string LogDir => Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "StardewValley", "ErrorLogs"); - /// <summary>The file path to the log where the latest output should be saved.</summary> - public static string LogPath => Path.Combine(Constants.LogDir, "SMAPI-latest.txt"); + /**** + ** Internal + ****/ + /// <summary>The GitHub repository to check for updates.</summary> + internal const string GitHubRepository = "Pathoschild/SMAPI"; + + /// <summary>The title of the SMAPI console window.</summary> + internal static string ConsoleTitle => $"Stardew Modding API Console - Version {Constants.ApiVersion} - Mods Loaded: {Program.ModsLoaded}"; /// <summary>The file path for the SMAPI configuration file.</summary> internal static string ApiConfigPath => Path.Combine(Constants.ExecutionPath, $"{typeof(Program).Assembly.GetName().Name}.config.json"); @@ -71,6 +71,12 @@ namespace StardewModdingAPI /// <summary>The file path for the SMAPI data file containing metadata about known mods.</summary> internal static string ApiModMetadataPath => Path.Combine(Constants.ExecutionPath, $"{typeof(Program).Assembly.GetName().Name}.data.json"); + /// <summary>The file path to the log where the latest output should be saved.</summary> + internal static string LogPath => Path.Combine(Constants.LogDir, "SMAPI-latest.txt"); + + /// <summary>Whether the directory containing the current save's data exists on disk.</summary> + internal static bool CurrentSavePathExists => Directory.Exists(Constants.RawSavePath); + /********* ** Protected methods |