Hi guys,
While working on IDA Pro, in the game Star Wars Commander (v4.0.0), I found a function with
making this zero can also work
_BuildingTypeVO_get_Time_m11804 ; CODE XREF: _ContractUtils_GetBuildingContractTotalTime_m15483+13Cp
__text:000DA834 ; _GameUtils_CrystalCostToInstantUpgrade_m15608+5Ep ...
__text:000DA834 LDR R0, [R0,#0x74]
__text:000DA836 BX LR
__text:000DA836 ; End of function _BuildingTypeVO_get_Time_m11804
__text:000DA836
__text:000DA838
__text:000DA838 ; =============== S U B R O U T I N E =======================================
__text:000DA838
__text:000DA838
__text:000DA838 _BuildingTypeVO_set_Time_m11805
__text:000DA838 STR R1, [R0,#0x74]
__text:000DA83A BX LR
__text:000DA83A ; End of function _BuildingTypeVO_set_Time_m11805
__text:000DA83A
__text:000DA83C
i can patch the binary at a point where it says LDR R0 [R0,#0x74]. (in BOLD)
it is in Thumb Hex form, and if i change hex to 00 68 it will become LDR R0 [R0].
Is this binary okay?
Similarly, i can make the STR one R1, [R0]