summaryrefslogtreecommitdiff
path: root/src/SMAPI/Framework/Models/SConfig.cs
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2022-06-24 02:06:25 -0400
committerJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2022-06-24 02:06:25 -0400
commit525ca7c9c99272c5aff557545c285f4307526589 (patch)
tree410ba1318652ff5da2766b9cbca7042de84ef95b /src/SMAPI/Framework/Models/SConfig.cs
parent1021c3291088d8e47dc23c608aaa7ff1f81c9fd7 (diff)
downloadSMAPI-525ca7c9c99272c5aff557545c285f4307526589.tar.gz
SMAPI-525ca7c9c99272c5aff557545c285f4307526589.tar.bz2
SMAPI-525ca7c9c99272c5aff557545c285f4307526589.zip
fix config.user.json overrides no longer applied
Diffstat (limited to 'src/SMAPI/Framework/Models/SConfig.cs')
-rw-r--r--src/SMAPI/Framework/Models/SConfig.cs30
1 files changed, 17 insertions, 13 deletions
diff --git a/src/SMAPI/Framework/Models/SConfig.cs b/src/SMAPI/Framework/Models/SConfig.cs
index baef6144..62b15405 100644
--- a/src/SMAPI/Framework/Models/SConfig.cs
+++ b/src/SMAPI/Framework/Models/SConfig.cs
@@ -38,45 +38,49 @@ namespace StardewModdingAPI.Framework.Models
/********
** Accessors
********/
+ //
+ // Note: properties must be writable to support merging config.user.json into it.
+ //
+
/// <summary>Whether to enable development features.</summary>
- public bool DeveloperMode { get; private set; }
+ public bool DeveloperMode { get; set; }
/// <summary>Whether to check for newer versions of SMAPI and mods on startup.</summary>
- public bool CheckForUpdates { get; }
+ 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; }
+ public bool ParanoidWarnings { get; set; }
/// <summary>Whether to show beta versions as valid updates.</summary>
- public bool UseBetaChannel { get; }
+ public bool UseBetaChannel { get; set; }
/// <summary>SMAPI's GitHub project name, used to perform update checks.</summary>
- public string GitHubProjectName { get; }
+ public string GitHubProjectName { get; set; }
/// <summary>The base URL for SMAPI's web API, used to perform update checks.</summary>
- public string WebApiBaseUrl { get; }
+ public string WebApiBaseUrl { get; set; }
/// <summary>The log contexts for which to enable verbose logging, which may show a lot more information to simplify troubleshooting.</summary>
/// <remarks>The possible values are "*" (everything is verbose), "SMAPI", (SMAPI itself), or mod IDs.</remarks>
- public HashSet<string> VerboseLogging { get; }
+ public HashSet<string> VerboseLogging { get; set; }
/// <summary>Whether SMAPI should rewrite mods for compatibility.</summary>
- public bool RewriteMods { get; }
+ public bool RewriteMods { get; set; }
/// <summary>Whether to use raw image data when possible, instead of initializing an XNA Texture2D instance through the GPU.</summary>
- public bool UseRawImageLoading { get; }
+ public bool UseRawImageLoading { get; set; }
/// <summary>Whether to make SMAPI file APIs case-insensitive, even on Linux.</summary>
- public bool UseCaseInsensitivePaths { get; }
+ public bool UseCaseInsensitivePaths { get; set; }
/// <summary>Whether SMAPI should log network traffic. Best combined with <see cref="VerboseLogging"/>, which includes network metadata.</summary>
- public bool LogNetworkTraffic { get; }
+ public bool LogNetworkTraffic { get; set; }
/// <summary>The colors to use for text written to the SMAPI console.</summary>
- public ColorSchemeConfig ConsoleColors { get; }
+ public ColorSchemeConfig ConsoleColors { get; set; }
/// <summary>The mod IDs SMAPI should ignore when performing update checks or validating update keys.</summary>
- public HashSet<string> SuppressUpdateChecks { get; }
+ public HashSet<string> SuppressUpdateChecks { get; set; }
/********