Skip to content

Run any managed assembly before Unity does -- now for Linux and macOS!

Notifications You must be signed in to change notification settings

Tobi-Mob/UnityDoorstop.Unix

 
 

Repository files navigation

UnityDoorstop for Linux and macOS

Build Status

This is UnityDoorstop equivalent for Linux and macOS.
The library makes use of LD_PRELOAD and DYLD_INSERT_LIBRARIES injection.

Hooking is done with the help of plthook modified to work better with older Unity builds.

How to build

You need gcc and make to build this binary

To build both x64 and x86 binaries, run make. This can fail on newer macOSes that don't support building x86 binaries.

To build a specific version, use make build_x64 or make build_x86 depending on your architecture.

How to use

  1. Put the built doorstop.so (or .dylib) and run.sh to the same directory as the game
  2. Edit run.sh to configure Doorstop to work correctly
  3. Run run.sh when you want to run your game modded
  4. When you want to run vanilla game, run the game normally

Note for macOS users

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).

About

Run any managed assembly before Unity does -- now for Linux and macOS!

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C 97.5%
  • Shell 1.8%
  • Makefile 0.7%