This is the AMP version of this page.
If you want to load the real page instead, click this text.

Solved How can i call a function while i'm modifying libil2cpp?

Status
Not open for further replies.

M44d

Platinian
Hi, thanks for your work in these forums.
I'm trying to learn how to MOD android games, i hope I'm doing well for now.
I have de-compiled all files and il2cppdecompiler to decompile metadata file to get function names.
But have a function like so.

With address "i think": 0xCE638C
HEX content: 00 58 40 BD
ARM64 converted: ldr s0, [x0, #0x58]

This function called when i want to use my MOD, when i change 0x58 to 0 i got exactly what i want in the game, but unfortunately, i have noticed that the application do some timer to calculate the time I'm trying to change. So it come to my mind that i have to call endtime function rather that line.

This is endtime function details from dump.cs

// RVA: 0xCE3CB0 Offset: 0xCE3CB0 VA: 0xCE3CB0
private void TimerEnded() { }

I has a lot of content so i can not share it here unless its so important.
But my question now is how to call that function in when i want?

Thanks advanced.
 
Last edited:
For further details, i have tried to replace #0x58 with #0xCE3CB0 but the application keeps crashing, so i think its not how to call a function, and i have made my researching in google, i have found that "bl" and "b" are for calling a function, but when using like so.

b #0xCE3CB0
bl #0xCE3CB0

The application still crashes.
Thanks advanced.
 
Status
Not open for further replies.