From 4db29589a61f2e7cb663c5734f911c02206c7997 Mon Sep 17 00:00:00 2001 From: boris Date: Wed, 9 Jan 2019 20:51:16 +1300 Subject: whole buncha shit FIXME: loader currently corrupts heap on injection because i am retarded --- csgo-loader/csgo-server/Server.hpp | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) (limited to 'csgo-loader/csgo-server/Server.hpp') diff --git a/csgo-loader/csgo-server/Server.hpp b/csgo-loader/csgo-server/Server.hpp index af07bb0..90def2a 100644 --- a/csgo-loader/csgo-server/Server.hpp +++ b/csgo-loader/csgo-server/Server.hpp @@ -5,6 +5,10 @@ // PLEASE UPDATE THEM ACCORDINGLY. #define SERVER_PORT 0xF2C // Hexadecimal representation of the server port. +#define CLIENT_HEADER 0x4D42310A +#define MODULE_HEADER 0x4D42320A +#define BANREQ_HEADER 0x4D42330A + // Core functionality #include #include @@ -13,7 +17,19 @@ #include #include -#include +//#include + +// Let's separate up the connection handlers :) +namespace Handler +{ + // Branches + void OnClientConnection(Networking::TCPConnection &Connection); + void OnModuleConnection(Networking::TCPConnection &Connection); + void OnBanReqConnection(Networking::TCPConnection &Connection); + + // Default handler + void OnReceiveConnection(Networking::TCPConnection &Connection); +} // It looked nasty in Server.cpp, so I'm putting it here. namespace Utils -- cgit v1.2.3