Example Hooking:
int CurrencySelectedType;
void(*old_Currency)(void*instance,int CurrencyType);
void Currency(void*instance,int CurrencyType) {
if (instance != NULL) {
if (CurrencySelectedType) {
old_Currency(instance,CurrencySelectedType);
return;
}
}
old_Currency(instance,CurrencyType);
}...