Solved Float hook works in 32bit but not 64bit

Status
Not open for further replies.

GamerBoi2020

Platinian
Hi,

I am trying to mod the 64bit version of a unity game with main.cpp and lgl mod menu (using AIDE CMODS), and I am using the correct corresponding offset form the dump.cs file which is identical to the method in the 32bit dump.cs file, but the hook doesn't work in the 64bit version of the game. How come it works fine in the 32bit version but not the 64bit version? Really strange. It's a hook and not a hex patch, so it's not an issue of using the incorrect hex codes for 64bit.
 
Ah never mind. I figured it out. Underneath this line at the top of the main.cpp file:

Code:
#define targetLibName OBFUSCATE("libil2cpp.so")
#include "Includes/Macros.h"

Instead of writing it like this for my method (which is --> Get_MyMethod):

Code:
bool feature1, feature2, Get_MyMethod = false;
int sliderValue = 1, level = 0;
void *instanceBtn;

I had to write it like this:

Code:
bool feature1, feature2,
float Get_MyMethod;
int sliderValue = 1, level = 0;
void *instanceBtn;

Kinda weird but it works! :lol:
 
Status
Not open for further replies.
Back
Top Bottom