summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2021-04-02 21:30:55 -0400
committerJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2021-04-02 21:30:55 -0400
commit60b563267ea7bc308d7eda55477f61fa063b069a (patch)
treec520f85751d2bad3f9ed9bf1c99be03928b54f6e /src
parent3fa0433c9862d1922cd0540848d2bd8716934d1f (diff)
downloadSMAPI-60b563267ea7bc308d7eda55477f61fa063b069a.tar.gz
SMAPI-60b563267ea7bc308d7eda55477f61fa063b069a.tar.bz2
SMAPI-60b563267ea7bc308d7eda55477f61fa063b069a.zip
fix asset key normalization for 64-bit hack (#767)
Diffstat (limited to 'src')
-rw-r--r--src/SMAPI/Framework/Content/ContentCache.cs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/SMAPI/Framework/Content/ContentCache.cs b/src/SMAPI/Framework/Content/ContentCache.cs
index 7edc9ab9..5c7ad778 100644
--- a/src/SMAPI/Framework/Content/ContentCache.cs
+++ b/src/SMAPI/Framework/Content/ContentCache.cs
@@ -57,6 +57,8 @@ namespace StardewModdingAPI.Framework.Content
IReflectedMethod method = reflection.GetMethod(typeof(TitleContainer), "GetCleanPath");
this.NormalizeAssetNameForPlatform = path => method.Invoke<string>(path);
}
+ else if (EarlyConstants.IsWindows64BitHack)
+ this.NormalizeAssetNameForPlatform = PathUtilities.NormalizePath;
else
this.NormalizeAssetNameForPlatform = key => key.Replace('\\', '/'); // based on MonoGame's ContentManager.Load<T> logic
}