good
This commit is contained in:
18
examples/cs2-silent-aim-master/cstrike/core/sdk.cpp
Normal file
18
examples/cs2-silent-aim-master/cstrike/core/sdk.cpp
Normal file
@@ -0,0 +1,18 @@
|
||||
#include "sdk.h"
|
||||
|
||||
// used: getmodulebasehandle
|
||||
#include "../utilities/memory.h"
|
||||
|
||||
bool SDK::Setup()
|
||||
{
|
||||
bool bSuccess = true;
|
||||
|
||||
const void* hTier0Lib = MEM::GetModuleBaseHandle(TIER0_DLL);
|
||||
if (hTier0Lib == nullptr)
|
||||
return false;
|
||||
|
||||
fnConColorMsg = reinterpret_cast<decltype(fnConColorMsg)>(MEM::GetExportAddress(hTier0Lib, CS_XOR("?ConColorMsg@@YAXAEBVColor@@PEBDZZ")));
|
||||
bSuccess &= fnConColorMsg != nullptr;
|
||||
|
||||
return bSuccess;
|
||||
}
|
||||
Reference in New Issue
Block a user