dfhack/shmserver
Petr Mrázek efdbb2fc42 some things to come in the near future ;) 2010-01-12 17:11:17 +00:00
..
CMakeLists.txt
df-hacked
dfconnect.so
readme.txt
shms-linux.cpp deadlock-filled windows SHM version 2010-01-11 06:27:59 +00:00
shms-proto.cpp fixes 2010-01-11 18:57:57 +00:00
shms-windows.cpp some things to come in the near future ;) 2010-01-12 17:11:17 +00:00
shms.h some things to come in the near future ;) 2010-01-12 17:11:17 +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