Erothots Solid & Active Platinian Nov 26, 2024 #2 C: void (*old_BoolExample1)(void *instance); void BoolExample1(void *instance) { if (instance != NULL) { if (IsBoolExample1) { *(bool *) ((uint64_t) instance + 0x00) = true; // Or you can put return false;. } } return old_BoolExample1(instance); } Upvote 0 Downvote
C: void (*old_BoolExample1)(void *instance); void BoolExample1(void *instance) { if (instance != NULL) { if (IsBoolExample1) { *(bool *) ((uint64_t) instance + 0x00) = true; // Or you can put return false;. } } return old_BoolExample1(instance); }
S sanyabrz Platinian Nov 27, 2024 #3 Erothots said: C: void (*old_BoolExample1)(void *instance); void BoolExample1(void *instance) { if (instance != NULL) { if (IsBoolExample1) { *(bool *) ((uint64_t) instance + 0x00) = true; // Or you can put return false;. } } return old_BoolExample1(instance); } Click to expand... what to write in cases? Upvote 0 Downvote
Erothots said: C: void (*old_BoolExample1)(void *instance); void BoolExample1(void *instance) { if (instance != NULL) { if (IsBoolExample1) { *(bool *) ((uint64_t) instance + 0x00) = true; // Or you can put return false;. } } return old_BoolExample1(instance); } Click to expand... what to write in cases?
Erothots Solid & Active Platinian Nov 28, 2024 #4 sanyabrz said: what to write in cases? Click to expand... case 1: IsBoolExample1 = Boolean; break; Upvote 0 Downvote