[ServerCommands] Fix servercommand assembly

This commit is contained in:
RektInator 2017-06-01 14:26:38 +02:00
parent 80ef544cc4
commit e64e9bffd6

View File

@ -42,6 +42,16 @@ namespace Components
test al, al
jnz jumpback
test eax, eax
jle error
mov eax, DWORD PTR[edx * 4 + 1AAC634h]
mov eax, [eax]
push 5944B3h
retn
error:
push 5944AEh
retn
@ -94,9 +104,9 @@ namespace Components
Utils::Hook(0x59449F, ServerCommands::OnServerCommandStub).install()->quick();
// Server command fail hooks
Utils::Hook(0x593C1F, ServerCommands::OnServerCommandPreFailStub).install()->quick();
Utils::Hook(0x5944BB, ServerCommands::OnServerCommandFailPrintStub).install()->quick();
Utils::Hook::Set<std::uint8_t>(0x5944D3, 0xEB);
// Utils::Hook(0x593C1F, ServerCommands::OnServerCommandPreFailStub).install()->quick();
// Utils::Hook(0x5944BB, ServerCommands::OnServerCommandFailPrintStub).install()->quick();
// Utils::Hook::Set<std::uint8_t>(0x5944D3, 0xEB);
}
ServerCommands::~ServerCommands()