This is a quick and dirty UnityDoorstop equivalent for Linux and macOS.
You need gcc to build this binary
Linux:
gcc -shared -fPIC -o doorstop.so doorstop.cmacOS:
gcc -shared -fPIC -o doorstop.dylib doorstop.c plthook_osx.cOr run either make build_x64 or make build_x86 depending on your architecture.
- Put the built
doorstop.so(or.dylib) andrun.shto the same directory as the game - Edit
run.shto configure Doorstop to work correctly - Run
run.shwhen you want to run your game modded - When you want to run vanilla game, run the game normally
You cannot directly run the Game.app, as it is just a folder. Instead, you must edit run.sh to execute Game.app/Contents/MacOS/Game (or other game executable depending on the Unity game).