suppress mono_* when configured

This commit is contained in:
Akash Mozumdar 2020-03-26 03:13:21 -06:00
parent af2ba72f39
commit bb0df71da2
2 changed files with 3 additions and 2 deletions

View File

@ -16803,10 +16803,11 @@ bool InsertMonoHooks()
if (FARPROC addr = ::GetProcAddress(h, func.functionName)) { if (FARPROC addr = ::GetProcAddress(h, func.functionName)) {
hp.address = (DWORD)addr; hp.address = (DWORD)addr;
hp.type = func.hookType; hp.type = func.hookType;
if (loadedConfig) hp.type |= HOOK_EMPTY;
hp.filter_fun = NoAsciiFilter; hp.filter_fun = NoAsciiFilter;
hp.offset = func.textIndex * 4; hp.offset = func.textIndex * 4;
hp.length_offset = func.lengthIndex * 4; hp.length_offset = func.lengthIndex * 4;
hp.text_fun = (decltype(hp.text_fun))func.text_fun; hp.text_fun = func.text_fun;
ConsoleOutput("vnreng: Mono: INSERT"); ConsoleOutput("vnreng: Mono: INSERT");
NewHook(hp, func.functionName); NewHook(hp, func.functionName);
ret = true; ret = true;

View File

@ -38,7 +38,7 @@ struct MonoFunction { // argument indices start from 0 for SpecialHookMonoString
size_t textIndex; // argument index size_t textIndex; // argument index
short lengthIndex; // argument index short lengthIndex; // argument index
unsigned long hookType; // HookParam type unsigned long hookType; // HookParam type
void *text_fun; // HookParam::text_fun_t void(*text_fun)(DWORD stack, HookParam* hp, BYTE obsoleteAlwaysZero, DWORD* data, DWORD* split, DWORD* len); // HookParam::text_fun_t
}; };
#define MONO_FUNCTIONS_INITIALIZER \ #define MONO_FUNCTIONS_INITIALIZER \