peddroelm Advanced Cheater
Reputation: 0
Joined: 03 Oct 2014 Posts: 84
|
Posted: Wed Nov 02, 2022 12:44 pm Post subject: Feature Request - Add Data Type Code to Dissected Structure |
|
|
Sometimes structs contain pointers to code not data
In two games I've encounter this, only way to determine if a particular instance (object) of a struct type is player or not, it contains a pointer chain to short instruction that when executed would provide different result ..
..
Code: | Call eax
code : xor eax,eax or mov eax,ecx depending if its player object or AI
fallowed by test al,al
|
Would've loved the option in data type dropdown for assembled ASM instruction under the type dropdown .. Xor eax,eax
Would it be difficult to add ?
// Once figured out I would test for the value of the first byte at that address to determine if player or monster ..
Code: |
local attackerXORorMOV_Instruction = readByte(readInteger(readInteger(ActingUnitAddr) + 0x8))
local attackerHeroOrMonsterStr = "Hero"
if (attackerXORorMOV_Instruction == 0x8b) then -- MOV eax,ecx
attackerHeroOrMonster = false
attackerHeroOrMonsterStr = "Monster"
....
end | [/img]
|
|