Petr Mrázek
cfd309bf70
fix C string idiocy.
2011-03-28 02:09:13 +02:00
Petr Mrázek
635e1998ee
Stop DFVector from accessing VersionInfo in the constructor (slight optimization).
2011-03-25 06:40:33 +01:00
Tom Prince
f28a29d29d
Fix some warnings on linux using C99 scanf modifiers.
...
Signed-off-by: Tom Prince <tom.prince@ualberta.net>
2011-03-01 17:36:26 -05:00
Petr Mrázek
97bfa32a82
More cleanup in the Process lands.
2011-02-24 11:43:33 +01:00
Tom Prince
c287e54793
Merge much of DFProcess-*-SHM.cpp into DFProcess-SHM.cpp.
2011-02-23 04:02:14 -05:00
Tom Prince
9ba80d517f
Remove some gratuitous differences in the SHM implementations.
2011-02-23 02:26:55 -05:00
Tom Prince
9b854be327
Remove duplicate code implementing readInt.
...
Implement one version in terms of the other.
2011-02-23 02:04:29 -05:00
Tom Prince
6ca0dd7c1d
Fix Process class.
2011-02-23 04:01:07 +01:00
Petr Mrázek
3835ba0f75
Search tools run on windows and moved to supported, some windows segment/heap/PE section enumeration work.
...
New windows dependency: ntdll.lib
2011-02-14 03:58:32 +01:00
Petr Mrázek
9ac7c1a9f2
memory.xml invalidation (untested)
2010-11-08 00:10:59 +01:00
belal
583f997e2f
fix linux getPaths to append a null terminator on the strings
2010-09-23 08:33:45 -04:00
belal
6661d7e1f7
added getPath() for all linux versions as well, should work fine
2010-09-16 18:21:41 -07:00
Petr Mrázek
143f30f64b
Merge branch 'master' of http://github.com/sizeak/dfhack
...
Conflicts:
library/VersionInfo.cpp
2010-08-23 16:16:58 +02:00
Petr Mrázek
1bceac2343
Rename memory_info and its factory class.
2010-08-20 14:10:05 +02:00
Petr Mrázek
a159707250
Fix memleak with Context not cleaning up.
2010-08-14 01:25:18 +02:00
Petr Mrázek
1645df7088
Some offsets for 0.31.04, bugfixes
2010-06-06 00:56:09 +02:00
Petr Mrázek
bd4456b5f6
Fix bad SHM reads of ranges above 1MB.
2010-05-26 18:05:12 +02:00
Petr Mrázek
af1a41712e
Tiny fixes.
2010-05-26 17:54:30 +02:00
Petr Mrázek
04b71f154c
Fun and games. Also turning old DFWindow class into a module tracked by Context.
2010-05-26 12:24:45 +02:00
Petr Mrázek
b710ed687a
Moving stuff around, part 2
2010-05-26 06:48:23 +02:00
Petr Mrázek
c26da9b84c
More DF 2010 reorganization
2010-04-02 16:46:33 +02:00
Petr Mrázek
71fc49897f
Accelerated creatures work on Windows
...
Refactored vector reading, proper length of vectors from MSVC9 is known (0x18, triplet starts at 0xC)
2010-03-30 02:26:52 +02:00
Petr Mrázek
71f8474e11
Added reading/writing support for effects like mist
...
Veinlook shows effects for it's middle block
Veinlook now uses wide-character ncurses
2010-03-20 17:30:13 +01:00
Petr Mrázek
d2afd21318
Stop synchronous suspend from eating CPU cycles.
...
Untested on windows.
Breaks the SHM protocol. New SHM server library is required.
2010-03-18 19:55:01 +01:00
Petr Mrázek
310669737e
Port multiple client SHM to Windows
2010-03-13 17:44:36 +01:00
Petr Mrázek
834a64c282
Fix horrible race conditions in suspend and resume
2010-03-12 18:29:11 +01:00
Petr Mrázek
0dd14bb9c8
Cosmetic changes, really
2010-03-12 12:14:20 +01:00
Petr Mrázek
9d503515dd
Another try at locking
2010-03-12 00:13:50 +01:00
Petr Mrázek
62ae8df573
per-process file locks on linux (stored in /tmp/DFHack/PID/)
...
minor signed/unsigned fix
2010-03-09 21:25:17 +01:00
Petr Mrázek
f0087926c5
Revert "Nuked many Process classes. Only SHM remains. We'll see how it goes :)"
...
This reverts commit b3424418e6
.
Conflicts:
library/DFProcess-linux-SHM.cpp
library/DFProcess-windows-SHM.cpp
library/DFProcess.h
library/DFProcessEnumerator-linux.cpp
library/DFProcessEnumerator-windows.cpp
Minor manual changes were required.
2010-03-09 15:15:15 +01:00
Petr Mrázek
9d7574dafe
DF disappeared exception
2010-03-09 03:30:22 +01:00
Petr Mrázek
36a6f1f0a4
mod-core rework
...
squashed some init commands together
fixed a problem with non-atomic shm command reading on the DF side that caused segfaults
2010-03-08 07:31:12 +01:00
Petr Mrázek
90baaad19b
Allow recognizing multiple DF SHM processes by the client
2010-03-08 01:54:46 +01:00
Petr Mrázek
9aedc56186
A waitWhile method copy turned into wrapper
2010-03-05 02:45:53 +01:00
Petr Mrázek
c86464502c
SHM rework, stage 2
2010-03-05 00:05:01 +01:00
Petr Mrázek
6e69dcdeed
Use sched_yield depending on CPU affinity
2010-03-04 04:40:06 +01:00
Petr Mrázek
0192520d43
SHM rework, stage 1
2010-03-03 05:43:38 +01:00
Petr Mrázek
b3424418e6
Nuked many Process classes. Only SHM remains. We'll see how it goes :)
2010-03-02 01:18:34 +01:00
Petr Mrázek
fa878f2e9d
Fix terrible Linux SHM performance on single-core
2010-02-28 18:08:44 +01:00
Petr Mrázek
05250b4eb5
Make Linux Process validation not fail with MissingMemoryDefinition
2010-02-28 06:21:50 +01:00
Petr Mrázek
1e04722a63
Refactor of memory_info class, now with more d-pointer
2010-02-22 23:34:20 +01:00
Petr Mrázek
f71fef9ef5
Process::readClassName implemented
2010-02-19 02:48:03 +01:00
Petr Mrázek
56969fb977
Added std::string read/write by belal. Extremely volatile.
2010-02-16 00:04:15 +01:00
Petr Mrázek
4430b43851
windows shm server part
2010-01-08 05:52:37 +00:00
Petr Mrázek
a01217f267
fixes
2010-01-05 20:51:58 +00:00
Petr Mrázek
242bf47143
some rearrangement of the shm server part, preparing for the windows port
2010-01-04 05:20:28 +00:00
Petr Mrázek
91f64ac8ba
iteration for huge reads and writes, async suspend call for polling
2010-01-02 02:25:21 +00:00
Petr Mrázek
a597c69915
make SHM header fixed-size
2010-01-01 23:21:55 +00:00
Petr Mrázek
84c68fb31c
fix attach/detach
2010-01-01 22:19:09 +00:00
Petr Mrázek
aef02eddce
use of memory barriers in the shm server and client code
2009-12-27 03:51:54 +00:00