typedef void(WINAPI* oGlowESP)(bool value);
#define GlowAddr 0x00B54DB0
void functions()
{
DWORD dwCShell = (DWORD)GetModuleHandleA("CShell.dll");
oGlowESP pSetGlowColor = (oGlowESP)((DWORD)dwCShell + GlowAddr);
if( Variable[ 2 ] )
{
pSetGlowColor(true);
}
else
{
pSetGlowColor(false);
}
}

void CHacks::Glow()
{
oGlowColor GlowFn = (oGlowColor)(CEngine::get()->GetCShell() + 0xB05DE0); // CF PH
if (!IsBadReadPtr(GlowFn, 4) && GlowFn != nullptr && GlowFn != NULL)
{
if (CVars::get()->glow)
{
GlowFn(true);
}
else
{
GlowFn(false);
}
}
}
void GlowFixed()
{
#define GlowAddr69420 0xB9B3D0
auto CShell = (DWORD)GetModuleHandleA("CShell.dll");
typedef void(WINAPI* oGlowESP)(bool value);
oGlowESP pSetGlowColor = (oGlowESP)((DWORD)CShell + GlowAddr69420);
if( Variable[ 2 ] )
{
pSetGlowColor(true);
}
else
{
pSetGlowColor(false);
}
}