Skip to content

Commit 6681fab

Browse files
committed
Update run script
1 parent 3fcd289 commit 6681fab

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

run.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,14 @@
55
# Running a game with Doorstop allows to execute arbitary .NET assemblies before Unity is initialized.
66
#
77
# Usage: Configure the script below and simply run this script when you want to run your game modded.
8-
# DO NOT EDIT THIS:
98

9+
doorstop_libname="doorstop.so"
1010
doorstop_dir=$PWD
1111
case "$(uname -s)" in
12-
Linux*) export LD_PRELOAD="$doorstop_dir/doorstop.so";;
13-
Darwin*) export DYLD_INSERT_LIBRARIES="$doorstop_dir/doorstop.dyld";;
12+
Linux*) export LD_LIBRARY_PATH=${doorstop_dir}:${LD_LIBRARY_PATH};
13+
export LD_PRELOAD=$doorstop_libname;;
14+
Darwin*) export DYLD_LIBRARY_PATH=${doorstop_dir}:${DYLD_LIBRARY_PATH};
15+
export DYLD_INSERT_LIBRARIES=$doorstop_libname;;
1416
*) echo "Invalid OS"; exit;;
1517
esac
1618

0 commit comments

Comments
 (0)