Skip to content

Commit

Permalink
Add new layout for cursor/selection_rect
Browse files Browse the repository at this point in the history
  • Loading branch information
lethosor committed Jul 29, 2016
1 parent 3f4b996 commit b1e7544
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions devel/find-offsets.lua
Original file line number Diff line number Diff line change
Expand Up @@ -408,6 +408,20 @@ local function find_cursor()
return true
end

-- New in 0.43.05 x64
idx, addr = data.int32_t:find_one{
-30000, -30000, -30000, 0, 0,
-30000, -30000, -30000, -30000, -30000, -30000,
df.game_mode.NONE, df.game_type.NONE
}
if idx then
ms.found_offset('cursor', addr)
ms.found_offset('selection_rect', addr + 0x14)
ms.found_offset('gamemode', addr + 0x2C)
ms.found_offset('gametype', addr + 0x30)
return true
end

dfhack.printerr('Could not find cursor.')
return false
end
Expand Down

0 comments on commit b1e7544

Please sign in to comment.