summaryrefslogtreecommitdiff
path: root/src/SMAPI/Constants.cs
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <github@jplamondonw.com>2018-06-06 21:45:03 -0400
committerJesse Plamondon-Willard <github@jplamondonw.com>2018-06-06 21:45:03 -0400
commitcd62dcc8cfa35a9b423f4d15359ec3083b4c6d44 (patch)
treef5eb9c233aeaa44b9d0c22278b86c5648d5ac393 /src/SMAPI/Constants.cs
parent9e525533e10ade49c733a34373e0fb749748918e (diff)
downloadSMAPI-cd62dcc8cfa35a9b423f4d15359ec3083b4c6d44.tar.gz
SMAPI-cd62dcc8cfa35a9b423f4d15359ec3083b4c6d44.tar.bz2
SMAPI-cd62dcc8cfa35a9b423f4d15359ec3083b4c6d44.zip
add simple Harmony wrapper for validation, error-handling, etc (#541)
Diffstat (limited to 'src/SMAPI/Constants.cs')
-rw-r--r--src/SMAPI/Constants.cs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/SMAPI/Constants.cs b/src/SMAPI/Constants.cs
index 786c1a39..d96c5839 100644
--- a/src/SMAPI/Constants.cs
+++ b/src/SMAPI/Constants.cs
@@ -103,6 +103,9 @@ namespace StardewModdingAPI
/// <summary>The target game platform.</summary>
internal static Platform Platform { get; } = EnvironmentUtility.DetectPlatform();
+ /// <summary>The game's assembly name.</summary>
+ internal static string GameAssemblyName => Constants.Platform == Platform.Windows ? "Stardew Valley" : "StardewValley";
+
/*********
** Internal methods