File tree Expand file tree Collapse file tree 1 file changed +7
-12
lines changed
Expand file tree Collapse file tree 1 file changed +7
-12
lines changed Original file line number Diff line number Diff line change 22
33[ ![ Build Status] ( https://dev.azure.com/ghorsington/UnityDoorstop/_apis/build/status/NeighTools.UnityDoorstop.Unix?branchName=master )] ( https://dev.azure.com/ghorsington/UnityDoorstop/_build/latest?definitionId=2&branchName=master )
44
5- This is a quick and dirty [ UnityDoorstop] ( https://github.com/NeighTools/UnityDoorstop ) equivalent for Linux and macOS.
5+ This is [ UnityDoorstop] ( https://github.com/NeighTools/UnityDoorstop ) equivalent for Linux and macOS.
6+ The library makes use of ` LD_PRELOAD ` and ` DYLD_INSERT_LIBRARIES ` injection.
67
7- ## How to build
8+ Hooking is done with the help of [ plthook ] ( https://github.com/kubo/plthook ) modified to work better with older Unity builds.
89
9- You need gcc to build this binary
10+ ## How to build
1011
11- Linux:
12- ``` sh
13- gcc -shared -fPIC -o doorstop.so doorstop.c
14- ```
12+ You need gcc and make to build this binary
1513
16- macOS:
17- ``` sh
18- gcc -shared -fPIC -o doorstop.dylib doorstop.c plthook_osx.c
19- ```
14+ To build both x64 and x86 binaries, run ` make ` . This can fail on newer macOSes that don't support building x86 binaries.
2015
21- Or run either ` make build_x64 ` or ` make build_x86 ` depending on your architecture.
16+ To build a specific version, use ` make build_x64 ` or ` make build_x86 ` depending on your architecture.
2217
2318## How to use
2419
You can’t perform that action at this time.
0 commit comments