Node stuff.
This commit is contained in:
parent
da74627af3
commit
c4daed0bad
@ -224,6 +224,9 @@ namespace Components
|
||||
Utils::Hook::Set<DWORD>(0x4AEF08, 0x1FFFC);
|
||||
Utils::Hook::Set<DWORD>(0x4AEFA3, 0x1FFFC);
|
||||
|
||||
// Parse port as short in Net_AddrToString
|
||||
Utils::Hook::Set<char*>(0x4698E3, "%u.%u.%u.%u:%hu");
|
||||
|
||||
// Install interception handler
|
||||
Utils::Hook(0x5AA709, Network::PacketInterceptionHandler, HOOK_CALL).Install()->Quick();
|
||||
|
||||
|
@ -42,7 +42,7 @@ namespace Components
|
||||
|
||||
void Node::AddNode(Network::Address address, bool valid)
|
||||
{
|
||||
//if (address.IsLocal() || address.IsSelf()) return;
|
||||
if (address.IsLocal() || address.IsSelf()) return;
|
||||
|
||||
Node::NodeEntry entry;
|
||||
|
||||
@ -161,7 +161,7 @@ namespace Components
|
||||
|
||||
Node::Node()
|
||||
{
|
||||
#ifdef USE_NODE_STUFF
|
||||
//#ifdef USE_NODE_STUFF
|
||||
Assert_Size(Node::AddressEntry, 6);
|
||||
|
||||
Dvar::OnInit([] ()
|
||||
@ -286,7 +286,7 @@ namespace Components
|
||||
|
||||
Node::AddNode(Network::Address(params[1]));
|
||||
});
|
||||
#endif
|
||||
//#endif
|
||||
}
|
||||
|
||||
Node::~Node()
|
||||
|
Loading…
Reference in New Issue
Block a user