forked from Public-Mirror/Textractor
suppress mono_* when configured
This commit is contained in:
parent
af2ba72f39
commit
bb0df71da2
@ -16803,10 +16803,11 @@ bool InsertMonoHooks()
|
||||
if (FARPROC addr = ::GetProcAddress(h, func.functionName)) {
|
||||
hp.address = (DWORD)addr;
|
||||
hp.type = func.hookType;
|
||||
if (loadedConfig) hp.type |= HOOK_EMPTY;
|
||||
hp.filter_fun = NoAsciiFilter;
|
||||
hp.offset = func.textIndex * 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");
|
||||
NewHook(hp, func.functionName);
|
||||
ret = true;
|
||||
|
@ -38,7 +38,7 @@ struct MonoFunction { // argument indices start from 0 for SpecialHookMonoString
|
||||
size_t textIndex; // argument index
|
||||
short lengthIndex; // argument index
|
||||
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 \
|
||||
|
Loading…
x
Reference in New Issue
Block a user