dfhack/library/shm
Petr Mrázek 02e6e46d5f Grass veins 2011-02-17 01:54:45 +01:00
..
CMakeLists.txt Common base for all modules 2010-06-25 07:11:26 +02:00
mod-core.cpp Moving stuff around, part 3 2010-05-26 08:42:09 +02:00
mod-core.h Moving stuff around, part 2 2010-05-26 06:48:23 +02:00
mod-creature40d.cpp Moving stuff around, part 2 2010-05-26 06:48:23 +02:00
mod-creature40d.h Moving stuff around, part 2 2010-05-26 06:48:23 +02:00
mod-creature2010.h Support for reading inventory 2010-08-17 15:21:54 +02:00
mod-maps.cpp Moving stuff around, part 3 2010-05-26 08:42:09 +02:00
mod-maps.h Grass veins 2011-02-17 01:54:45 +01:00
readme.txt Moving stuff around, part 2 2010-05-26 06:48:23 +02:00
shms-linux.cpp Moving stuff around, part 2 2010-05-26 06:48:23 +02:00
shms-windows.cpp Fix for SHM on windows 2010-07-17 20:13:44 +02:00
shms.h Moving stuff around, part 2 2010-05-26 06:48:23 +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