diff options
author | Jesse Plamondon-Willard <github@jplamondonw.com> | 2018-08-31 17:43:17 -0400 |
---|---|---|
committer | Jesse Plamondon-Willard <github@jplamondonw.com> | 2018-08-31 17:43:17 -0400 |
commit | f4a0632e0ea7c9d0c0f4d4886a2143016ab62cdf (patch) | |
tree | 2bb0aad3a1a55585481a2b5a3c8904653232d8b5 /src/SMAPI/Framework/Models | |
parent | ff8ffbdef0306254094258be326d75fcdc2bcbe1 (diff) | |
download | SMAPI-f4a0632e0ea7c9d0c0f4d4886a2143016ab62cdf.tar.gz SMAPI-f4a0632e0ea7c9d0c0f4d4886a2143016ab62cdf.tar.bz2 SMAPI-f4a0632e0ea7c9d0c0f4d4886a2143016ab62cdf.zip |
enable paranoid warnings automatically in debug mode (#590)
Diffstat (limited to 'src/SMAPI/Framework/Models')
-rw-r--r-- | src/SMAPI/Framework/Models/SConfig.cs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/SMAPI/Framework/Models/SConfig.cs b/src/SMAPI/Framework/Models/SConfig.cs index bdfaa670..e2b33160 100644 --- a/src/SMAPI/Framework/Models/SConfig.cs +++ b/src/SMAPI/Framework/Models/SConfig.cs @@ -15,7 +15,12 @@ namespace StardewModdingAPI.Framework.Models public bool CheckForUpdates { get; set; } /// <summary>Whether to add a section to the 'mod issues' list for mods which which directly use potentially sensitive .NET APIs like file or shell access.</summary> - public bool ParanoidWarnings { get; set; } + public bool ParanoidWarnings { get; set; } = +#if DEBUG + true; +#else + false; +#endif /// <summary>Whether to show beta versions as valid updates.</summary> public bool UseBetaChannel { get; set; } = Constants.ApiVersion.IsPrerelease(); |