From fdb81a898151278a66af544dfae6bfcbbf9dc3d2 Mon Sep 17 00:00:00 2001 From: jz0 Date: Sun, 3 May 2020 22:38:59 +0300 Subject: Initial commit --- source2-basehook/DllMain.cpp | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 source2-basehook/DllMain.cpp (limited to 'source2-basehook/DllMain.cpp') diff --git a/source2-basehook/DllMain.cpp b/source2-basehook/DllMain.cpp new file mode 100644 index 0000000..e631be9 --- /dev/null +++ b/source2-basehook/DllMain.cpp @@ -0,0 +1,30 @@ +/* + Source2 Basehook + by: j, https://github.com/jz0 + + Credits: + Valve + P47R!CK + Praydog +*/ + +#include "Include.hpp" + +void Initialize() +{ + Msg = (MsgFn)GetProcAddress(GetModuleHandleA("tier0.dll"), "?ConColorMsg@@YAXAEBVColor@@PEBDZZ"); + Msg(Color(255, 52, 25, 255), "Source2 Basehook\n"); + + Base::InitInterfaces(); + Base::InitHooks(); + //Utilities::DumpNetVars(); +} + +BOOL APIENTRY DllMain(void* Module, DWORD Reason, void* Reserved) +{ + if (Reason == DLL_PROCESS_ATTACH) + Initialize(); + + return TRUE; +} + -- cgit v1.2.3