Node stuff.

This commit is contained in:
momo5502 2016-01-28 17:30:32 +01:00
parent da74627af3
commit c4daed0bad
2 changed files with 6 additions and 3 deletions

View File

@ -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();

View File

@ -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()