blob: c5f4f75f99bb9abc0892af43b58221b42615fc73 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#include "engine/r2engine.h"
#include "shared/exploit_fixes/ns_limits.h"
AUTOHOOK_INIT()
AUTOHOOK(ProcessConnectionlessPacket, engine.dll + 0x117800, bool, , (void* a1, R2::netpacket_t* packet))
{
if (!g_pServerLimits->CheckConnectionlessPacketLimits(packet))
return false;
return ProcessConnectionlessPacket(a1, packet);
}
ON_DLL_LOAD_RELIESON("engine.dll", ServerNetHooks, ConVar, (CModule module))
{
AUTOHOOK_DISPATCH_MODULE(engine.dll)
}
|