aboutsummaryrefslogtreecommitdiff
path: root/source2-basehook/DllMain.cpp
blob: e631be9b25b294bd199f902fe45ef7d8e323f746 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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;
}