summaryrefslogtreecommitdiff
path: root/src/StardewModdingAPI/Framework/ModHelpers
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <github@jplamondonw.com>2017-09-08 13:18:43 -0400
committerJesse Plamondon-Willard <github@jplamondonw.com>2017-09-08 13:18:43 -0400
commit23951220ae84f3132832c942b61a8e81aee1fbfe (patch)
treea18bf2227299276604124b6a243ccda84d0413a2 /src/StardewModdingAPI/Framework/ModHelpers
parent1825755e75f5ea9a339d96d591cbcf0f1b950f4d (diff)
downloadSMAPI-23951220ae84f3132832c942b61a8e81aee1fbfe.tar.gz
SMAPI-23951220ae84f3132832c942b61a8e81aee1fbfe.tar.bz2
SMAPI-23951220ae84f3132832c942b61a8e81aee1fbfe.zip
fix errors loading some custom map tilesheets on Linux/Mac
Diffstat (limited to 'src/StardewModdingAPI/Framework/ModHelpers')
-rw-r--r--src/StardewModdingAPI/Framework/ModHelpers/ContentHelper.cs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/StardewModdingAPI/Framework/ModHelpers/ContentHelper.cs b/src/StardewModdingAPI/Framework/ModHelpers/ContentHelper.cs
index 9f236823..4440ae40 100644
--- a/src/StardewModdingAPI/Framework/ModHelpers/ContentHelper.cs
+++ b/src/StardewModdingAPI/Framework/ModHelpers/ContentHelper.cs
@@ -231,6 +231,7 @@ namespace StardewModdingAPI.Framework.ModHelpers
// check map info
if (!map.TileSheets.Any())
return;
+ mapKey = this.ContentManager.NormaliseAssetName(mapKey); // Mono's Path.GetDirectoryName doesn't handle Windows dir separators
string relativeMapFolder = Path.GetDirectoryName(mapKey) ?? ""; // folder path containing the map, relative to the mod folder
// fix tilesheets