summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2022-04-09 12:03:30 -0400
committerJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2022-04-09 12:03:30 -0400
commit288ef5dc0715339a3a0bf89975a6db7ab7408e2b (patch)
tree2fb1dc5c5608e78d93a55a5945494e35cd3b4d5d /src
parent283e7d11325c9da6db942fd7de91579805694c83 (diff)
downloadSMAPI-288ef5dc0715339a3a0bf89975a6db7ab7408e2b.tar.gz
SMAPI-288ef5dc0715339a3a0bf89975a6db7ab7408e2b.tar.bz2
SMAPI-288ef5dc0715339a3a0bf89975a6db7ab7408e2b.zip
add environment variable form of new CLI args, update docs
Diffstat (limited to 'src')
-rw-r--r--src/SMAPI/Program.cs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/SMAPI/Program.cs b/src/SMAPI/Program.cs
index 0c9c2d87..b2e213fe 100644
--- a/src/SMAPI/Program.cs
+++ b/src/SMAPI/Program.cs
@@ -200,6 +200,12 @@ namespace StardewModdingAPI
// get from environment variables
if (string.IsNullOrWhiteSpace(rawModsPath))
rawModsPath = Environment.GetEnvironmentVariable("SMAPI_MODS_PATH");
+ if (developerMode is null)
+ {
+ string rawDeveloperMode = Environment.GetEnvironmentVariable("SMAPI_DEVELOPER_MODE");
+ if (rawDeveloperMode != null)
+ developerMode = bool.Parse(rawDeveloperMode);
+ }
// normalize
modsPath = !string.IsNullOrWhiteSpace(rawModsPath)