diff options
author | James Finlay <jtfinlay@ualberta.ca> | 2016-03-06 14:04:22 -0800 |
---|---|---|
committer | James Finlay <jtfinlay@ualberta.ca> | 2016-03-06 14:04:22 -0800 |
commit | bfd8d047666737443c8cf99bd4764d7bf03ee91b (patch) | |
tree | 155541bd3e82c993cba4aad0d67568e751855f4b /StardewModdingAPI | |
parent | 93112cbb3245409554878b835812048954314d2b (diff) | |
download | SMAPI-bfd8d047666737443c8cf99bd4764d7bf03ee91b.tar.gz SMAPI-bfd8d047666737443c8cf99bd4764d7bf03ee91b.tar.bz2 SMAPI-bfd8d047666737443c8cf99bd4764d7bf03ee91b.zip |
Reverting GetFolderPath change
Diffstat (limited to 'StardewModdingAPI')
-rw-r--r-- | StardewModdingAPI/Constants.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/StardewModdingAPI/Constants.cs b/StardewModdingAPI/Constants.cs index fb35feb9..f8b913f7 100644 --- a/StardewModdingAPI/Constants.cs +++ b/StardewModdingAPI/Constants.cs @@ -13,7 +13,7 @@ namespace StardewModdingAPI /// Stardew Valley's local app data location. /// %LocalAppData%//StardewValley /// </summary> - public static string DataPath => Path.Combine(Environment.SpecialFolder.ApplicationData.ToString(), "StardewValley"); + public static string DataPath => Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "StardewValley"); /// <summary> /// Execution path to execute the code. @@ -29,7 +29,7 @@ namespace StardewModdingAPI /// Path for log files to be output to. /// %LocalAppData%//StardewValley//ErrorLogs /// </summary> - public static string LogPath => Path.Combine(Environment.SpecialFolder.ApplicationData.ToString(), "StardewValley", "ErrorLogs"); + public static string LogPath => Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "StardewValley", "ErrorLogs"); public const int MajorVersion = 0; |