summaryrefslogtreecommitdiff
path: root/src/StardewModdingAPI
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <github@jplamondonw.com>2017-05-27 00:21:48 -0400
committerJesse Plamondon-Willard <github@jplamondonw.com>2017-05-27 00:21:48 -0400
commite92dbc41df1548b72be4ca5c0a6c6fe17235d950 (patch)
tree58c279ebf497157a74bead71d081278d1c271269 /src/StardewModdingAPI
parent3324628e3b8fa5d85102a57e273595b783f86318 (diff)
downloadSMAPI-e92dbc41df1548b72be4ca5c0a6c6fe17235d950.tar.gz
SMAPI-e92dbc41df1548b72be4ca5c0a6c6fe17235d950.tar.bz2
SMAPI-e92dbc41df1548b72be4ca5c0a6c6fe17235d950.zip
improve libgdiplus.dylib fix for Mono players
Diffstat (limited to 'src/StardewModdingAPI')
-rw-r--r--src/StardewModdingAPI/unix-launcher.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/StardewModdingAPI/unix-launcher.sh b/src/StardewModdingAPI/unix-launcher.sh
index eb2f42af..39fd4f29 100644
--- a/src/StardewModdingAPI/unix-launcher.sh
+++ b/src/StardewModdingAPI/unix-launcher.sh
@@ -26,7 +26,18 @@ if [ "$UNAME" == "Darwin" ]; then
export DYLD_INSERT_LIBRARIES="$STEAM_DYLD_INSERT_LIBRARIES"
fi
+ # this was here before
ln -sf mcs.bin.osx mcs
+
+ # fix "DllNotFoundException: libgdiplus.dylib" errors when loading images in SMAPI
+ if [ -f libgdiplus.dylib ]; then
+ rm libgdiplus.dylib
+ fi
+ if [ -f /Library/Frameworks/Mono.framework/Versions/Current/lib/libgdiplus.dylib ]; then
+ ln -s /Library/Frameworks/Mono.framework/Versions/Current/lib/libgdiplus.dylib libgdiplus.dylib
+ fi
+
+ # launch SMAPI
cp StardewValley.bin.osx StardewModdingAPI.bin.osx
open -a Terminal ./StardewModdingAPI.bin.osx $@
else