dfhack/shmserver
Petr Mrázek 088028cc5f Small change 2010-03-04 18:46:37 +01:00
..
CMakeLists.txt SHM rework, stage 1 2010-03-03 05:43:38 +01:00
mod-maps.cpp Small change 2010-03-04 18:46:37 +01:00
mod-maps.h Missing file + some new 2010-03-04 18:35:26 +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-core.cpp Use sched_yield depending on CPU affinity 2010-03-04 04:40:06 +01:00
shms-core.h Missing file + some new 2010-03-04 18:35:26 +01:00
shms-linux.cpp Use sched_yield depending on CPU affinity 2010-03-04 04:40:06 +01:00
shms-windows.cpp SHM rework, stage 1 2010-03-03 05:43:38 +01:00
shms.h Use sched_yield depending on CPU affinity 2010-03-04 04:40:06 +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