Code Monkey home page Code Monkey logo

unitydoorstop.unix's Introduction

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

unitydoorstop.unix's People

Contributors

ghorsington avatar glcoder avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

unitydoorstop.unix's Issues

Compatibility for ARM architecture with x86_64 emulators

Just as title says, I'm respectfully asking you guys to look into the ARM architecture, and the emulators for x86/64 programs (specifically Box86/Box64). In case you don't know yet, when you try to run BepInEx, an error pops up, signaling a "Segmentation Fault", caused by the libdoorstop_x64.so
Please, please, please take a look at it. Thank you.

Question regards to the injection process

Hi!

Thank you for this library. It works really well, but I found an issue regards to injection process.
Is there any other way to inject that library?

I've got a few reports from users that LD_PRELOAD/DYLD_INSERT_LIBRARIES overwrites existing environment variable (possibly added at game launch) which breaks Steam overlay and probably other 3rd party overlays.

Adding $@ arg to the last line of the script helped with passing original parameters but I haven't found how to fix overlay issue.

I don't have experience with Unix systems, so I don't really know if it's even possible.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.