dfhack/shmserver
Petr Mrázek 35960db5aa Fix for out-of-bounds access error with regionoffsets. Breaks compatibility. 2010-03-31 18:16:18 +02:00
..
CMakeLists.txt Accelerated reading of creatures 2010-03-28 17:22:15 +02:00
mod-core.cpp Accelerated reading of creatures 2010-03-28 17:22:15 +02:00
mod-core.h Another try at locking 2010-03-12 00:13:50 +01:00
mod-creature40d.cpp Accelerated creatures work on Windows 2010-03-30 02:26:52 +02:00
mod-creature40d.h Accelerated creatures work on Windows 2010-03-30 02:26:52 +02:00
mod-maps.cpp Accelerated reading of creatures 2010-03-28 17:22:15 +02:00
mod-maps.h Fix for out-of-bounds access error with regionoffsets. Breaks compatibility. 2010-03-31 18:16:18 +02: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 Cosmetic changes, really 2010-03-12 12:14:20 +01:00
shms-windows.cpp Fix for stupid error on Windows 2010-03-25 10:10:23 +01:00
shms.h Accelerated reading of creatures 2010-03-28 17:22:15 +02: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