Well, there are three references in dump file for that function. And only one has a rva value with it. It is, application target framerate set(int 32)().Yes, you can hex patch get_targetFrameRate.
If the game is for pc, then you would also need disable vsync (set QualitySettings.VSyncCount to 0). But this game is a mobile game, right? Then you don't need to worry about vsync.
So yes, just editing application.targetframerate should work
I took the hex value you gave and put it in the address. I then copied this file to my rooted android, in the game lib's folder and game crashes. Any idea why ? Should the game crash if i just replace lib ? Do i need to compile it ?There is that get method I mentioned in your dump, use it's rva:
View attachment 678417
There are many tutorials here like this one for hex patching
ll2Cpp Dump + Modding
But basically, first you need a hex code which you replace the original code with:
View attachment 678420
This should do: E0 7C 80 D2 C0 03 5F D6, code for int number 999.
You can make your own in armconverter.com by replacing the 999 with another number.
Then open libil2cpp.so in a hex editor, ctrl+g and paste the part after 0x of that rva: 194ae80 and enter.
You are now in the address of the rva. Then copy that hex code and press ctrl+b to replace original code.
Then save and build your apk with the edited libil2cpp.so
I suspected some corruption so I started the project again. This time the game didn't crash when I replaced the hex edited file. But the FPS didn't unlock either.There is that get method I mentioned in your dump, use it's rva:
View attachment 678417
There are many tutorials here like this one for hex patching
ll2Cpp Dump + Modding
But basically, first you need a hex code which you replace the original code with:
View attachment 678420
This should do: E0 7C 80 D2 C0 03 5F D6, code for int number 999.
You can make your own in armconverter.com by replacing the 999 with another number.
Then open libil2cpp.so in a hex editor, ctrl+g and paste the part after 0x of that rva: 194ae80 and enter.
You are now in the address of the rva. Then copy that hex code and press ctrl+b to replace original code.
Then save and build your apk with the edited libil2cpp.so
Also, replacing in the lib folder is okShould the game crash if i just replace lib ? Do i need to compile it ?