Optimize far-jump patches

This commit is contained in:
momo5502
2016-02-12 00:36:52 +01:00
parent 4f458b40c3
commit 02b6dd2f19
7 changed files with 25 additions and 8 deletions

View File

@ -242,7 +242,7 @@ namespace Components
Utils::Hook(0x5AA709, Network::PacketInterceptionHandler, HOOK_CALL).Install()->Quick();
// Install packet deploy hook
Utils::Hook::Set<int>(0x5AA715, (DWORD)Network::DeployPacketStub - 0x5AA713 - 6);
Utils::Hook::RedirectJump(0x5AA713, Network::DeployPacketStub);
}
Network::~Network()

View File

@ -122,7 +122,7 @@ namespace Components
UIScript::UIScript()
{
// Install handler
Utils::Hook::Set<int>(0x45EC5B, (DWORD)UIScript::RunMenuScriptStub - 0x45EC59 - 6);
Utils::Hook::RedirectJump(0x45EC59, UIScript::RunMenuScriptStub);
// Install ownerdraw handler
Utils::Hook(0x63D233, UIScript::OwnerDrawHandleKeyStub, HOOK_CALL).Install()->Quick();