dfhack/dfhack/shm
Petr Mrázek 018ac7a67f SHM works on Windows again, fixes for Windows build in general 2010-05-25 01:49:13 +02:00
..
CMakeLists.txt Revived the SHM. Seems to be working, but needs a fair bit of changes. 2010-05-24 03:07:13 +02:00
mod-core.cpp Revived the SHM. Seems to be working, but needs a fair bit of changes. 2010-05-24 03:07:13 +02:00
mod-core.h Warning-squashing 2010-05-02 02:38:18 +02:00
mod-creature40d.cpp Revived the SHM. Seems to be working, but needs a fair bit of changes. 2010-05-24 03:07:13 +02:00
mod-creature40d.h Warning-squashing 2010-05-02 02:38:18 +02:00
mod-creature2010.h Creature birth date and time is now read 2010-05-12 14:41:43 +02:00
mod-maps.cpp Revived the SHM. Seems to be working, but needs a fair bit of changes. 2010-05-24 03:07:13 +02:00
mod-maps.h Warning-squashing 2010-05-02 02:38:18 +02:00
readme.txt Move shm 2010-04-02 16:53:09 +02:00
shms-linux.cpp SHM works on Windows again, fixes for Windows build in general 2010-05-25 01:49:13 +02:00
shms-windows.cpp SHM works on Windows again, fixes for Windows build in general 2010-05-25 01:49:13 +02:00
shms.h Modular API 2010-04-05 00:48:19 +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