Skip to content

Commit 94c882f

Browse files
authored
Update README.md
1 parent 2290262 commit 94c882f

File tree

1 file changed

+7
-12
lines changed

1 file changed

+7
-12
lines changed

Diff for: README.md

+7-12
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,18 @@
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

0 commit comments

Comments
 (0)