cxb: fixed configs

This commit is contained in:
2024-03-14 00:14:51 +01:00
parent 097b74d849
commit 774a639bb7
10 changed files with 31 additions and 48 deletions

View File

@ -82,7 +82,13 @@ static struct hook_symbol revio_syms[] = {
HRESULT revio_hook_init(struct revio_config *cfg)
{
dprintf("Revio: Init\n");
assert(cfg != NULL);
if (!cfg->enable) {
return S_FALSE;
}
dprintf("Revio: Hook enabled.\n");
return proc_addr_table_push("CommIo.dll", revio_syms, _countof(revio_syms));
}