Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
ghorsington committed May 27, 2020
1 parent 2290262 commit 94c882f
Showing 1 changed file with 7 additions and 12 deletions.
19 changes: 7 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,18 @@

[![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)

This is a quick and dirty [UnityDoorstop](https://github.com/NeighTools/UnityDoorstop) equivalent for Linux and macOS.
This is [UnityDoorstop](https://github.com/NeighTools/UnityDoorstop) equivalent for Linux and macOS.
The library makes use of `LD_PRELOAD` and `DYLD_INSERT_LIBRARIES` injection.

## How to build
Hooking is done with the help of [plthook](https://github.com/kubo/plthook) modified to work better with older Unity builds.

You need gcc to build this binary
## How to build

Linux:
```sh
gcc -shared -fPIC -o doorstop.so doorstop.c
```
You need gcc and make to build this binary

macOS:
```sh
gcc -shared -fPIC -o doorstop.dylib doorstop.c plthook_osx.c
```
To build both x64 and x86 binaries, run `make`. This can fail on newer macOSes that don't support building x86 binaries.

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

## How to use

Expand Down

0 comments on commit 94c882f

Please sign in to comment.