summaryrefslogtreecommitdiff
path: root/src/SMAPI/Framework
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <github@jplamondonw.com>2018-05-01 19:15:56 -0400
committerJesse Plamondon-Willard <github@jplamondonw.com>2018-05-01 19:15:56 -0400
commitb1a24452eef782332d699ef8193c01e0da8ffa01 (patch)
treebac0f97a71319ae87381237cc4bbab60607d8c5e /src/SMAPI/Framework
parent009a387526ee10b18d0ed3030d6e8868edf17203 (diff)
downloadSMAPI-b1a24452eef782332d699ef8193c01e0da8ffa01.tar.gz
SMAPI-b1a24452eef782332d699ef8193c01e0da8ffa01.tar.bz2
SMAPI-b1a24452eef782332d699ef8193c01e0da8ffa01.zip
add public platform constant for mods
Diffstat (limited to 'src/SMAPI/Framework')
-rw-r--r--src/SMAPI/Framework/Content/ContentCache.cs2
-rw-r--r--src/SMAPI/Framework/Monitor.cs2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/SMAPI/Framework/Content/ContentCache.cs b/src/SMAPI/Framework/Content/ContentCache.cs
index 8851fc7d..c2818cdd 100644
--- a/src/SMAPI/Framework/Content/ContentCache.cs
+++ b/src/SMAPI/Framework/Content/ContentCache.cs
@@ -53,7 +53,7 @@ namespace StardewModdingAPI.Framework.Content
this.Cache = reflection.GetField<Dictionary<string, object>>(contentManager, "loadedAssets").GetValue();
// get key normalisation logic
- if (Constants.TargetPlatform == Platform.Windows)
+ if (Constants.Platform == Platform.Windows)
{
IReflectedMethod method = reflection.GetMethod(typeof(TitleContainer), "GetCleanPath");
this.NormaliseAssetNameForPlatform = path => method.Invoke<string>(path);
diff --git a/src/SMAPI/Framework/Monitor.cs b/src/SMAPI/Framework/Monitor.cs
index 73915824..8df2e59b 100644
--- a/src/SMAPI/Framework/Monitor.cs
+++ b/src/SMAPI/Framework/Monitor.cs
@@ -167,7 +167,7 @@ namespace StardewModdingAPI.Framework
// auto detect color scheme
if (colorScheme == MonitorColorScheme.AutoDetect)
{
- if (Constants.TargetPlatform == Platform.Mac)
+ if (Constants.Platform == Platform.Mac)
colorScheme = MonitorColorScheme.LightBackground; // MacOS doesn't provide console background color info, but it's usually white.
else
colorScheme = Monitor.IsDark(Console.BackgroundColor) ? MonitorColorScheme.DarkBackground : MonitorColorScheme.LightBackground;