https://github.com/dfhack/hooks
Shim code compiled into DF that loads and calls DFHack
https://github.com/dfhack/hooks
Last synced: 3 months ago
JSON representation
Shim code compiled into DF that loads and calls DFHack
- Host: GitHub
- URL: https://github.com/dfhack/hooks
- Owner: DFHack
- License: unlicense
- Created: 2022-12-24T02:37:01.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-12-27T19:33:27.000Z (about 3 years ago)
- Last Synced: 2025-02-22T00:44:06.948Z (12 months ago)
- Language: C++
- Size: 16.6 KB
- Stars: 1
- Watchers: 6
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# hooks
Shim code compiled into DF `g_src` that loads and calls a "dfhooks" library located
in the root DF game directory. If a "dfhooks" library cannot be found or loaded, or
if it does not provide the specific API call that the hook is looking for, the shim
will return immediately and have no effect.
The shim will pass calls through to a library named according to the convention of
the host platform it was compiled for:
- `dfhooks.dll` (Windows)
- `libdfhooks.so` (Linux)
- `libdfhooks.dylib` (OSX)
This shim code is released into the public domain. See `LICENSE` for details.