summaryrefslogtreecommitdiff
path: root/src/SMAPI/Framework/Models
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2020-06-20 00:50:23 -0400
committerJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2020-06-20 00:50:23 -0400
commit067163da02c5a5993d88d80f04d379c22bc32cba (patch)
tree964d4361fe28d8d97fca1b62c7f1a80768def66c /src/SMAPI/Framework/Models
parenta9ca7dcdc025d1557d8f728c442c2a4fea386af9 (diff)
downloadSMAPI-067163da02c5a5993d88d80f04d379c22bc32cba.tar.gz
SMAPI-067163da02c5a5993d88d80f04d379c22bc32cba.tar.bz2
SMAPI-067163da02c5a5993d88d80f04d379c22bc32cba.zip
make parallel rewriting optional
Diffstat (limited to 'src/SMAPI/Framework/Models')
-rw-r--r--src/SMAPI/Framework/Models/SConfig.cs11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/SMAPI/Framework/Models/SConfig.cs b/src/SMAPI/Framework/Models/SConfig.cs
index b1612aa4..a98d8c54 100644
--- a/src/SMAPI/Framework/Models/SConfig.cs
+++ b/src/SMAPI/Framework/Models/SConfig.cs
@@ -15,12 +15,8 @@ namespace StardewModdingAPI.Framework.Models
private static readonly IDictionary<string, object> DefaultValues = new Dictionary<string, object>
{
[nameof(CheckForUpdates)] = true,
- [nameof(ParanoidWarnings)] =
-#if DEBUG
- true,
-#else
- false,
-#endif
+ [nameof(ParanoidWarnings)] = Constants.IsDebugBuild,
+ [nameof(RewriteInParallel)] = Constants.IsDebugBuild,
[nameof(UseBetaChannel)] = Constants.ApiVersion.IsPrerelease(),
[nameof(GitHubProjectName)] = "Pathoschild/SMAPI",
[nameof(WebApiBaseUrl)] = "https://smapi.io/api/",
@@ -45,6 +41,9 @@ namespace StardewModdingAPI.Framework.Models
/// <summary>Whether to check for newer versions of SMAPI and mods on startup.</summary>
public bool CheckForUpdates { get; set; }
+ /// <summary>Whether to enable experimental parallel rewriting.</summary>
+ public bool RewriteInParallel { get; set; } = (bool)SConfig.DefaultValues[nameof(SConfig.RewriteInParallel)];
+
/// <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; } = (bool)SConfig.DefaultValues[nameof(SConfig.ParanoidWarnings)];