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?