Hi
Should i mod setter methods in IDA? i'm not sure if it is possible... i always mod getter methods.
about PUSH and POP. can i simply replace it or should i keep it like this?
PUSH {R4,LR}
MOV R0, R7
POP {R4,PC}
Here is the full ARM assembly code
_DWORD __fastcall Hero::SetCriticalDmg(Hero *__hidden this, unsigned __int16)
EXPORT _ZN4Hero14SetCriticalDmgEt
_ZN4Hero14SetCriticalDmgEt ; DATA XREF: .data.rel.ro:00BCD0E8o
PUSH {R4,LR}
MOVS R4, R0
BL _ZN5Actor14SetCriticalDmgEt ; Actor::SetCriticalDmg(ushort)
LDR R3, =0x5EC
LDR R0, [R4,R3] ; this
CMP R0, #0
BEQ locret_4AD148
BL _ZN13PlayerInfoMgr14IncHeroDataVerEv ; PlayerInfoMgr::IncHeroDataVer(void)
locret_4AD148 ; CODE XREF: Hero::SetCriticalDmg(ushort)+Ej
POP {R4,PC}