Help! HOOK Method Returning a Value Help!

GODOFMLBB

Platinian
Original poster
Aug 20, 2022
16
1
3
28
tr
Hello there. How can I return mov r0,r1 and bx lr as HOOK Method. Float int Void Which Should I Use and What Should Its Values? Also I don't want to use Hex Patch. I will not do Hex Patch. Understand that.
 

Raebydett

Awesome Active Platinian
Jan 20, 2020
176
62
28
G
Stop mentioning your mov r0 r1 lol, u just confusing other ppl here

If u want learn hook read the tutorial "Hooking related"
 

liami302

Approved Modder
Approved Modder
Mar 19, 2022
57
3,946
183
24
Somewhere far away
You're confusing people by mentioning assembly stuff.

What does bx lr have to do with hooking?
For r1, r0 you mean mov r0, #0 and #1?

it would be

*(bool*)((uint64_t) obj + 0x0) = true;

or if you're hooking a bool function just return true or false..
 

GODOFMLBB

Platinian
Original poster
Aug 20, 2022
16
1
3
28
tr
You're confusing people by mentioning assembly stuff.

What does bx lr have to do with hooking?
For r1, r0 you mean mov r0, #0 and #1?

it would be

*(bool*)((uint64_t) obj + 0x0) = true;

or if you're hooking a bool function just return true or false..
// RVA: 0x2A99C20 Offset: 0x2A35C20
public static CmdHeroSkin GetHeroSkin(List<CmdHeroSkin> m_heroskins, uint skinid) { }

dude my offset and its value like this. I'm not talking about mov r0 #1. Everyone thinks they know, but no one knows how to return the value of mov r0, r1. how silly.
 

Smiley3rd

Platinian
Oct 4, 2020
28
225
28
23
Indonesia
// RVA: 0x2A99C20 Offset: 0x2A35C20
public static CmdHeroSkin GetHeroSkin(List<CmdHeroSkin> m_heroskins, uint skinid) { }

dude my offset and its value like this. I'm not talking about mov r0 #1. Everyone thinks they know, but no one knows how to return the value of mov r0, r1. how silly.
Mobile Legends...
Why not patch instead of hook?