diff options
author | Zoryn <Zoryn4163@users.noreply.github.com> | 2016-03-27 01:10:18 -0400 |
---|---|---|
committer | Zoryn <Zoryn4163@users.noreply.github.com> | 2016-03-27 01:10:18 -0400 |
commit | 976bc6e2a96aba761c0feff414dd5f95dd4cd991 (patch) | |
tree | 9dd87794562d797ec8291fd00af0409b406467df /StardewModdingAPI/Constants.cs | |
parent | 112305161688eb4d88ccfc79b5636eca6e0ab1d9 (diff) | |
parent | 12bf4fd843be26f89b5fe3415aeec3055c54d786 (diff) | |
download | SMAPI-976bc6e2a96aba761c0feff414dd5f95dd4cd991.tar.gz SMAPI-976bc6e2a96aba761c0feff414dd5f95dd4cd991.tar.bz2 SMAPI-976bc6e2a96aba761c0feff414dd5f95dd4cd991.zip |
Merge pull request #67 from Zoryn4163/master
logging things. not sure if ready for release build, testing for a bit.
Diffstat (limited to 'StardewModdingAPI/Constants.cs')
-rw-r--r-- | StardewModdingAPI/Constants.cs | 32 |
1 files changed, 20 insertions, 12 deletions
diff --git a/StardewModdingAPI/Constants.cs b/StardewModdingAPI/Constants.cs index a29e5fa8..ddd46115 100644 --- a/StardewModdingAPI/Constants.cs +++ b/StardewModdingAPI/Constants.cs @@ -6,13 +6,20 @@ using StardewValley; namespace StardewModdingAPI { /// <summary> - /// Static class containing readonly values. + /// Static class containing readonly values. /// </summary> public static class Constants { + public static readonly Version Version = new Version(0, 39, 3, "Alpha"); + + /// <summary> + /// Not quite "constant", but it makes more sense for it to be here, at least for now + /// </summary> + public static int ModsLoaded = 0; + /// <summary> - /// Stardew Valley's roaming app data location. - /// %AppData%//StardewValley + /// Stardew Valley's roaming app data location. + /// %AppData%//StardewValley /// </summary> public static string DataPath => Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "StardewValley"); @@ -29,26 +36,27 @@ namespace StardewModdingAPI public static bool PlayerNull => !Game1.hasLoadedGame || Game1.player == null || string.IsNullOrEmpty(Game1.player.name); /// <summary> - /// Execution path to execute the code. + /// Execution path to execute the code. /// </summary> public static string ExecutionPath => Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location); /// <summary> - /// Title for the API console + /// Title for the API console /// </summary> public static string ConsoleTitle => $"Stardew Modding API Console - Version {Version.VersionString} - Mods Loaded: {ModsLoaded}"; /// <summary> - /// Path for log files to be output to. - /// %LocalAppData%//StardewValley//ErrorLogs + /// Path for log files to be output to. + /// %LocalAppData%//StardewValley//ErrorLogs /// </summary> - public static string LogPath => Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "StardewValley", "ErrorLogs"); + public static string LogDir => Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "StardewValley", "ErrorLogs"); - public static readonly Version Version = new Version(0, 39, 2, "Alpha"); + public static string LogPath => Path.Combine(LogDir, "MODDED_ProgramLog.Log_LATEST.txt"); /// <summary> - /// Not quite "constant", but it makes more sense for it to be here, at least for now + /// Whether or not to enable the Render Target drawing code offered by ClxS + /// Do not mark as 'const' or else 'if' checks will complain that the expression is always true in ReSharper /// </summary> - public static int ModsLoaded = 0; + public static bool EnableDrawingIntoRenderTarget => true; } -} +}
\ No newline at end of file |