diff options
author | Jesse Plamondon-Willard <github@jplamondonw.com> | 2018-05-01 19:15:56 -0400 |
---|---|---|
committer | Jesse Plamondon-Willard <github@jplamondonw.com> | 2018-05-01 19:15:56 -0400 |
commit | b1a24452eef782332d699ef8193c01e0da8ffa01 (patch) | |
tree | bac0f97a71319ae87381237cc4bbab60607d8c5e /src/SMAPI/Framework/Content | |
parent | 009a387526ee10b18d0ed3030d6e8868edf17203 (diff) | |
download | SMAPI-b1a24452eef782332d699ef8193c01e0da8ffa01.tar.gz SMAPI-b1a24452eef782332d699ef8193c01e0da8ffa01.tar.bz2 SMAPI-b1a24452eef782332d699ef8193c01e0da8ffa01.zip |
add public platform constant for mods
Diffstat (limited to 'src/SMAPI/Framework/Content')
-rw-r--r-- | src/SMAPI/Framework/Content/ContentCache.cs | 2 |
1 files changed, 1 insertions, 1 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); |