dfhack/library/shmserver
Petr Mrázek efce0ab21b merge in shm branch 2009-12-22 21:19:39 +00:00
..
dfconnect.c merge in shm branch 2009-12-22 21:19:39 +00:00
dfconnect.h merge in shm branch 2009-12-22 21:19:39 +00:00
readme.txt merge in shm branch 2009-12-22 21:19:39 +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.