What if the target class doesnt have an Update function? Do I nop it???Use the Update function from same class.
What if the target class doesnt have an Update function? Do I nop it???
So when the class doesn't have an update option, you can't do hoking void or private ?You need Update + field offset from same class
You can hex patch your function if it's too hard to get field with Update
You can try using another method in the same class, it doesn't always have to be "update"So when the class doesn't have an update option, you can't do hoking void or private ?
You can try using another method in the same class, it doesn't always have to be "update"
Try them they'll either work or they won't.I can use this 2 class like this example is in the game update plus name of the function that will work or just works update example public void update { } nothing else written
private int maxShards; // 0x78
private void UpdateMaxShards() { } 0x13FE830
I tested it and it didn't work so I always have to use the update from the same class because these were from different classes... I can only get an update from the same class or this update could be hidden in a different class or the codestage doesn't let the hack work? because there are many updates in dump.csTry them they'll either work or they won't.
bool goldss = false;Try them they'll either work or they won't.
bool goldss = false;
bool shardss = false;
void(*old_Golds)(void *instance);
void Golds(void *instance) {
if(instance != NULL) {
if (goldss) {
*(int *) ((uint64_t) instance + 0x18) = 100000;
*(int *) ((uint64_t) instance + 0x12AD11C) = 100000;
}
}
old_Golds(instance);
}
void(*old_shards)(void *instance);
void shards(void *instance) {
if(instance != NULL) {
if (shardss) {
*(int *) ((uint64_t) instance + 0x1C) = 1000000;
*(int *) ((uint64_t) instance + 0x12AD124) = 1000000;
}
}
old_shards(instance);
}
MSHookFunction((void *)getAbsoluteAddress("libil2cpp.so", 0x16CB0C0), (void *) Golds, (void **) &old_Golds);
MSHookFunction((void *)getAbsoluteAddress("libil2cpp.so", 0x13FE830), (void *) shards, (void **) &old_shards)
OBFUSCATE("20_Toggle_golds"),
OBFUSCATE("30_Toggle_shards"),
switch (featNum) {
case 20:
goldss = !goldss;
break;
case 30:
shardss = !shardss;
break;
}
}
}
The game stays on a black screen, why?
We use cookies to personalize content and ads, to provide social media features and to analyse our traffic. We also share necessary information with our advertising and analytics partners to optimize your experience on our site.
Learn more about cookies
We use cookies to personalize content and ads, to provide social media features and to analyse our traffic. We also share necessary information with our advertising and analytics partners to optimize your experience on our site.
Learn more about cookies