Add new integer types to memscan and update find-offsets

develop
lethosor 2016-07-29 00:05:12 -04:00
parent dc79e2477b
commit e8fe72826f
2 changed files with 11 additions and 2 deletions

@ -157,8 +157,17 @@ function MemoryArea.new(astart, aend)
uint32_t = CheckedArray.new('uint32_t',astart,aend),
int64_t = CheckedArray.new('int64_t',astart,aend),
uint64_t = CheckedArray.new('uint64_t',astart,aend),
float = CheckedArray.new('float',astart,aend)
float = CheckedArray.new('float',astart,aend),
intptr_t = CheckedArray.new('intptr_t',astart,aend),
uintptr_t = CheckedArray.new('uintptr_t',astart,aend),
}
if dfhack.getOSType() == 'windows' then
-- always 32 bits on Windows
obj.long = obj.int32_t
else
-- size of pointer on Linux/OS X
obj.long = obj.intptr_t
end
setmetatable(obj, MemoryArea)
return obj
end

@ -1 +1 @@
Subproject commit b9f223612bbcebfa8aa3de368fd5deadc1d4589d
Subproject commit 43bf437671380c78d4e0a6c55c6b94316dce930c