summaryrefslogtreecommitdiff
path: root/src/StardewModdingAPI
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <github@jplamondonw.com>2017-04-23 23:58:08 -0400
committerJesse Plamondon-Willard <github@jplamondonw.com>2017-04-23 23:58:08 -0400
commit1de8895642c12e6e36f95c0b960679a8e30d0615 (patch)
treeaea943d7c0e9263a5836d113af33cc4be9997eba /src/StardewModdingAPI
parente3219bd96988c5890e4ddfeb661c942c0c86d251 (diff)
downloadSMAPI-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)
Diffstat (limited to 'src/StardewModdingAPI')
-rw-r--r--src/StardewModdingAPI/Constants.cs2
1 files changed, 1 insertions, 1 deletions
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()) : "";