dfhack/shmserver
Petr Mrázek 62ae8df573 per-process file locks on linux (stored in /tmp/DFHack/PID/)
minor signed/unsigned fix
2010-03-09 21:25:17 +01:00
..
CMakeLists.txt Don't build SHM on 64bit, makes no sense 2010-03-05 01:26:39 +01:00
mod-core.cpp Each DF process on windows now has unique mutex and shm names. 2010-03-09 13:41:55 +01:00
mod-core.h Each DF process on windows now has unique mutex and shm names. 2010-03-09 13:41:55 +01:00
mod-maps.cpp Some map module bits 2010-03-05 16:06:02 +01:00
mod-maps.h Some map module bits 2010-03-05 16:06:02 +01:00
readme.txt some rearrangement of the shm server part, preparing for the windows port 2010-01-04 05:20:28 +00:00
shms-linux.cpp per-process file locks on linux (stored in /tmp/DFHack/PID/) 2010-03-09 21:25:17 +01:00
shms-windows.cpp Each DF process on windows now has unique mutex and shm names. 2010-03-09 13:41:55 +01:00
shms.h SHM rework, stage 2 2010-03-05 00:05:01 +01:00

readme.txt

Using the shm server:
copy files to DF/libs folder
g++ -fPIC -c dfconnect.c -o dfconnect.o
g++ -shared -o dfconnect.so dfconnect.o -ldl

edit DF/df script and add this line just before DF is called:
export LD_PRELOAD="./libs/dfconnect.so" # Hack DF!

save and run the script!

Has to be compiled for 32bit arch, otherwise the library isn't recognised. Client can be any arch.

Precompiled dfconnect library is made available. dfconnect.so goes in DF/libs, df-hacked script goes in DF/
Run ./df-hacked to use the shared memory API