summaryrefslogtreecommitdiff
path: root/src/SMAPI/Framework/Content
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2021-03-17 20:36:32 -0400
committerJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2021-03-21 16:06:52 -0400
commitca67dcc920560f3fd19a4531c40fdb03d19e96c5 (patch)
tree4ad4a7966f8d617251fce731b6c14d41e9a313e1 /src/SMAPI/Framework/Content
parent73321eceb96f263f10857667d7b3726a5098e770 (diff)
downloadSMAPI-ca67dcc920560f3fd19a4531c40fdb03d19e96c5.tar.gz
SMAPI-ca67dcc920560f3fd19a4531c40fdb03d19e96c5.tar.bz2
SMAPI-ca67dcc920560f3fd19a4531c40fdb03d19e96c5.zip
add Constants.GameFramework field (#767)
Diffstat (limited to 'src/SMAPI/Framework/Content')
-rw-r--r--src/SMAPI/Framework/Content/ContentCache.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/SMAPI/Framework/Content/ContentCache.cs b/src/SMAPI/Framework/Content/ContentCache.cs
index af65e07e..7edc9ab9 100644
--- a/src/SMAPI/Framework/Content/ContentCache.cs
+++ b/src/SMAPI/Framework/Content/ContentCache.cs
@@ -52,7 +52,7 @@ namespace StardewModdingAPI.Framework.Content
this.Cache = reflection.GetField<Dictionary<string, object>>(contentManager, "loadedAssets").GetValue();
// get key normalization logic
- if (Constants.Platform == Platform.Windows)
+ if (Constants.GameFramework == GameFramework.Xna)
{
IReflectedMethod method = reflection.GetMethod(typeof(TitleContainer), "GetCleanPath");
this.NormalizeAssetNameForPlatform = path => method.Invoke<string>(path);