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)) {
|
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;
|
||||||
|
@ -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 \
|
||||||
|
Loading…
Reference in New Issue
Block a user