Skip to content

Commit 0740dc0

Browse files
committed
Core: Disable ScriptChunk Hook because it breaks things
1 parent 60a98d2 commit 0740dc0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Core/NWNXCore.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,7 @@ void NWNXCore::InitialSetupHooks()
190190
}
191191
});
192192

193+
/* TODO-64Bit: This breaks stuff if it gets hooked, disabling it for now
193194
if (!m_coreServices->m_config->Get<bool>("ALLOW_NWNX_FUNCTIONS_IN_EXECUTE_SCRIPT_CHUNK", false))
194195
{
195196
m_services->m_hooks->RequestSharedHook<API::Functions::_ZN25CNWVirtualMachineCommands32ExecuteCommandExecuteScriptChunkEii, int32_t>(
@@ -198,6 +199,7 @@ void NWNXCore::InitialSetupHooks()
198199
g_core->m_ScriptChunkRecursion += (type == Services::Hooks::CallType::BEFORE_ORIGINAL) ? +1 : -1;
199200
});
200201
}
202+
*/
201203

202204
// TODO-64Bit: Temp fix for POS
203205
m_services->m_hooks->RequestSharedHook<API::Functions::_ZN11CGameObjectC2Ehj, void>(

0 commit comments

Comments
 (0)