DWORD WINAPI OnDllAttach (PVOID base)
{
if (std :: strstr (GetCommandLineA (), ""))
{
if (g_csgo.m_engine () -> GetEngineBuildNumber ())
{
materials :: get (). setup ();
netvars :: get (). init ();
hooks :: load ();
while (! unload) {
using namespace std :: literals :: chrono_literals;
std :: this_thread :: sleep_for (1s);
}
hooks :: shutdown ();
std :: this_thread :: sleep_for (std :: chrono :: milliseconds (100));
fclose ((FILE *) stdin);
fclose ((FILE *) stdout);
FreeConsole ();
FreeLibraryAndExitThread (static_cast <HMODULE> (base), 1);
}
}
}