diff options
| author | jz0 <[email protected]> | 2020-05-03 22:38:59 +0300 |
|---|---|---|
| committer | jz0 <[email protected]> | 2020-05-03 22:38:59 +0300 |
| commit | fdb81a898151278a66af544dfae6bfcbbf9dc3d2 (patch) | |
| tree | 8884fc5c21b3daf0a32cc145c4488b9e708deec4 /source2-basehook/DllMain.cpp | |
| download | archived-source2-basehook-fdb81a898151278a66af544dfae6bfcbbf9dc3d2.tar.xz archived-source2-basehook-fdb81a898151278a66af544dfae6bfcbbf9dc3d2.zip | |
Initial commit
Diffstat (limited to 'source2-basehook/DllMain.cpp')
| -rw-r--r-- | source2-basehook/DllMain.cpp | 30 |
1 files changed, 30 insertions, 0 deletions
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; +} + |