diff options
| author | Petr Mrázek | 2011-07-16 23:00:28 +0200 |
|---|---|---|
| committer | Petr Mrázek | 2011-07-16 23:00:28 +0200 |
| commit | 9f822af45a3adb22db3a25f88fd215aefc4fbc85 (patch) | |
| tree | 2fbe9b69506286374522bc9c322a19c695a1e518 /library/Process-windows.cpp | |
| parent | fdff604a44697e8305f341bbeb17e915575f40e1 (diff) | |
| download | dfhack-9f822af45a3adb22db3a25f88fd215aefc4fbc85.tar.gz dfhack-9f822af45a3adb22db3a25f88fd215aefc4fbc85.tar.bz2 dfhack-9f822af45a3adb22db3a25f88fd215aefc4fbc85.tar.xz | |
Process: added a method for getting the main module base (windows). Returns 0 on linux.
Diffstat (limited to 'library/Process-windows.cpp')
| -rw-r--r-- | library/Process-windows.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/library/Process-windows.cpp b/library/Process-windows.cpp index 7bf78644..2edfc632 100644 --- a/library/Process-windows.cpp +++ b/library/Process-windows.cpp @@ -330,6 +330,13 @@ void Process::getMemRanges( vector<t_memrange> & ranges ) } } +uint32_t Process::getBase() +{ + if(d) + return d->base; + return 0x400000; +} + string Process::doReadClassName (void * vptr) { int rtti = readDWord((uint32_t)vptr - 0x4); |
