hi guys i'm trying to hook this
so far this is what i'm doing
tell me what's wrong with it and how can i fix it, also suggest alternatives, thank you
Code:
// RVA: 0x1199FCC Offset: 0x1199FCC VA: 0x1199FCC
public void AddGold(SecuredDouble gold) { }
Code:
double Gold = 1;
#else //To compile this code for armv7 lib only.
void (*old_AddGold)(void *instance, double value);
void AddGold(void *instance, double value) {
if (instance != NULL && Gold >= 0) {
return (void) Gold;
}
// Move the old_AddGold function call here
old_AddGold(instance, +6974);
}
void *hack_thread(void *) {
LOGI(OBFUSCATE("pthread created"));
AddGold >= (void (*)(void *, double)) getAbsoluteAddress(targetLibName, 0x1199FCC);
jobjectArray GetFeatureList(JNIEnv *env, jobject context) {
jobjectArray ret;
const char *features[] = {
OBFUSCATE("Button_Get Massive Gold"), //0 Case
switch (featNum) {
case 0:
Gold =! Gold;
break;
Last edited: