Jump to content

Need help with functions


Go to solution Solved by Diversityy,

34 posts in this topic

Recommended Posts

Posted

try Getcoin or Setcoin

Can you tell me what i would change in here to add money?

 

 _tolua_function
__text:000C367A                 MOVW            R1, #(:lower16:(aAddmoney - 0xC3690)) ; "addMoney"
__text:000C367E                 MOV             R0, R4
__text:000C3680                 MOVT.W          R1, #(:upper16:(aAddmoney - 0xC3690)) ; "addMoney"
__text:000C3684                 MOV             R2, #(__ZL32tolua_Game_GlobalData_addMoney00P9lua_State+1 - 0xC3692) ; tolua_Game_GlobalData_addMoney00(lua_State *)
__text:000C368C                 ADD             R1, PC  ; "addMoney"
__text:000C368E                 ADD             R2, PC ; tolua_Game_GlobalData_addMoney00(lua_State *)
__text:000C3690                 BL              _tolua_function
Posted

Can you tell me what i would change in here to add money?

 

 _tolua_function

__text:000C367A                 MOVW            R1, #(:lower16:(aAddmoney - 0xC3690)) ; "addMoney"

__text:000C367E                 MOV             R0, R4

__text:000C3680                 MOVT.W          R1, #(:upper16:(aAddmoney - 0xC3690)) ; "addMoney"

__text:000C3684                 MOV             R2, #(__ZL32tolua_Game_GlobalData_addMoney00P9lua_State+1 - 0xC3692) ; tolua_Game_GlobalData_addMoney00(lua_State *)

__text:000C368C                 ADD             R1, PC  ; "addMoney"

__text:000C368E                 ADD             R2, PC ; tolua_Game_GlobalData_addMoney00(lua_State *)

__text:000C3690                 BL              _tolua_function

Try MOV R0, R4

Change the 4 to a 7

Posted

Ok...now i'm a noob...so, using arm converter mov r0, r7 converts to 3846 thumb to hex. so i use a hex editor and change the original hex to 3846?

I suggest using Code injection I've had trouble with binaries but you use hex workshop to change the hex within the binary also you need to set permissions in the binary once modified and transfered to your idevice

Posted

I suggest using Code injection I've had trouble with binaries but you use hex workshop to change the hex within the binary also you need to set permissions in the binary once modified and transfered to your idevice

 

Thanks! I'll try it out

I thought MOV R0, R7 was 381C? O.o

 

Well this is where my noob gets in the way. The converter lists Thumb-2 Hex 3846 and Thumb Hex 381C...how do i know which one?

Posted (edited)

I thought MOV R0, R7 was 381C? O.o

:shrug:

Thanks! I'll try it out

 

Well this is where my noob gets in the way. The converter lists Thumb-2 Hex 3846 and Thumb Hex 381C...how do i know which one?

381C Updated by JohnKittz
Posted

Thanks! I'll try it out

 

Well this is where my noob gets in the way. The converter lists Thumb-2 Hex 3846 and Thumb Hex 381C...how do i know which one?

Use Thumb-Hex

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...

Important Information

We would like to place cookies on your device to help make this website better. The website cannot give you the best user experience without cookies. You can accept or decline our cookies. You may also adjust your cookie settings. Privacy Policy - Guidelines