File tree 1 file changed +7
-12
lines changed
1 file changed +7
-12
lines changed Original file line number Diff line number Diff line change 2
2
3
3
[ ![ 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 )
4
4
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.
6
7
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.
8
9
9
- You need gcc to build this binary
10
+ ## How to build
10
11
11
- Linux:
12
- ``` sh
13
- gcc -shared -fPIC -o doorstop.so doorstop.c
14
- ```
12
+ You need gcc and make to build this binary
15
13
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.
20
15
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.
22
17
23
18
## How to use
24
19
You can’t perform that action at this time.
0 commit comments