diff options
author | Jesse Plamondon-Willard <github@jplamondonw.com> | 2017-04-23 23:58:08 -0400 |
---|---|---|
committer | Jesse Plamondon-Willard <github@jplamondonw.com> | 2017-04-23 23:58:08 -0400 |
commit | 1de8895642c12e6e36f95c0b960679a8e30d0615 (patch) | |
tree | aea943d7c0e9263a5836d113af33cc4be9997eba | |
parent | e3219bd96988c5890e4ddfeb661c942c0c86d251 (diff) | |
download | SMAPI-1de8895642c12e6e36f95c0b960679a8e30d0615.tar.gz SMAPI-1de8895642c12e6e36f95c0b960679a8e30d0615.tar.bz2 SMAPI-1de8895642c12e6e36f95c0b960679a8e30d0615.zip |
fixed `Constants.SaveFolderName` not set for a new game until the save is created (#261)
-rw-r--r-- | release-notes.md | 1 | ||||
-rw-r--r-- | src/StardewModdingAPI/Constants.cs | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/release-notes.md b/release-notes.md index bc2c90b8..103fceb5 100644 --- a/release-notes.md +++ b/release-notes.md @@ -29,6 +29,7 @@ For mod developers: * Added `IsBetween` and string overloads to the `ISemanticVersion` methods. * Fixed mouse-changed event never updating prior mouse position. * Fixed `monitor.ExitGameImmediately` not working correctly. +* Fixed `Constants.SaveFolderName` not set for a new game until the save is created. ## 1.9 See [log](https://github.com/Pathoschild/SMAPI/compare/1.8...1.9). diff --git a/src/StardewModdingAPI/Constants.cs b/src/StardewModdingAPI/Constants.cs index a8121461..aca5abb8 100644 --- a/src/StardewModdingAPI/Constants.cs +++ b/src/StardewModdingAPI/Constants.cs @@ -64,7 +64,7 @@ namespace StardewModdingAPI public static string SavesPath { get; } = Path.Combine(Constants.DataPath, "Saves"); /// <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.SavePathReady ? Constants.GetSaveFolderName() : ""; + public static string SaveFolderName => Constants.IsSaveLoaded ? Constants.GetSaveFolderName() : ""; /// <summary>The directory path containing the current save's data (if a save is loaded and the directory exists).</summary> public static string CurrentSavePath => Constants.SavePathReady ? Path.Combine(Constants.SavesPath, Constants.GetSaveFolderName()) : ""; |