From bfd8d047666737443c8cf99bd4764d7bf03ee91b Mon Sep 17 00:00:00 2001 From: James Finlay Date: Sun, 6 Mar 2016 14:04:22 -0800 Subject: [PATCH] Reverting GetFolderPath change --- StardewModdingAPI/Constants.cs | 4 ++-- 1 file 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 /// - public static string DataPath => Path.Combine(Environment.SpecialFolder.ApplicationData.ToString(), "StardewValley"); + public static string DataPath => Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "StardewValley"); /// /// Execution path to execute the code. @@ -29,7 +29,7 @@ namespace StardewModdingAPI /// Path for log files to be output to. /// %LocalAppData%//StardewValley//ErrorLogs /// - 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;