dfhack/library/shmserver
Petr Mrázek a597c69915 make SHM header fixed-size 2010-01-01 23:21:55 +00:00
..
df-hacked use of memory barriers in the shm server and client code 2009-12-27 03:51:54 +00:00
dfconnect.c make SHM header fixed-size 2010-01-01 23:21:55 +00:00
dfconnect.h make SHM header fixed-size 2010-01-01 23:21:55 +00:00
dfconnect.so make SHM header fixed-size 2010-01-01 23:21:55 +00:00
readme.txt use of memory barriers in the shm server and client code 2009-12-27 03:51:54 +00: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