[ServerCommands] Fix servercommand assembly
This commit is contained in:
parent
80ef544cc4
commit
e64e9bffd6
@ -42,6 +42,16 @@ namespace Components
|
|||||||
test al, al
|
test al, al
|
||||||
jnz jumpback
|
jnz jumpback
|
||||||
|
|
||||||
|
test eax, eax
|
||||||
|
jle error
|
||||||
|
|
||||||
|
mov eax, DWORD PTR[edx * 4 + 1AAC634h]
|
||||||
|
mov eax, [eax]
|
||||||
|
|
||||||
|
push 5944B3h
|
||||||
|
retn
|
||||||
|
|
||||||
|
error:
|
||||||
push 5944AEh
|
push 5944AEh
|
||||||
retn
|
retn
|
||||||
|
|
||||||
@ -94,9 +104,9 @@ namespace Components
|
|||||||
Utils::Hook(0x59449F, ServerCommands::OnServerCommandStub).install()->quick();
|
Utils::Hook(0x59449F, ServerCommands::OnServerCommandStub).install()->quick();
|
||||||
|
|
||||||
// Server command fail hooks
|
// Server command fail hooks
|
||||||
Utils::Hook(0x593C1F, ServerCommands::OnServerCommandPreFailStub).install()->quick();
|
// Utils::Hook(0x593C1F, ServerCommands::OnServerCommandPreFailStub).install()->quick();
|
||||||
Utils::Hook(0x5944BB, ServerCommands::OnServerCommandFailPrintStub).install()->quick();
|
// Utils::Hook(0x5944BB, ServerCommands::OnServerCommandFailPrintStub).install()->quick();
|
||||||
Utils::Hook::Set<std::uint8_t>(0x5944D3, 0xEB);
|
// Utils::Hook::Set<std::uint8_t>(0x5944D3, 0xEB);
|
||||||
}
|
}
|
||||||
|
|
||||||
ServerCommands::~ServerCommands()
|
ServerCommands::~ServerCommands()
|
||||||
|
Loading…
Reference in New Issue
Block a user