using System; using System.IO; using System.Reflection; namespace StardewModdingAPI { /// /// Static class containing readonly values. /// public static class Constants { /// /// Stardew Valley's local app data location. /// %LocalAppData%//StardewValley /// public static string DataPath => Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "StardewValley"); /// /// Execution path to execute the code. /// public static string ExecutionPath => Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location); /// /// Title for the API console /// public static string ConsoleTitle => string.Format("Stardew Modding API Console - Version {0}", VersionString); /// /// Path for log files to be output to. /// %LocalAppData%//StardewValley//ErrorLogs /// public static string LogPath => Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "StardewValley", "ErrorLogs"); public const int MajorVersion = 0; public const int MinorVersion = 38; public const int PatchVersion = 6; public const string Build = "Alpha"; public static string VersionString => string.Format("{0}.{1}.{2} {3}", MajorVersion, MinorVersion, PatchVersion, Build); } }