Update dllmain.cpp

This commit is contained in:
0TheSpy 2022-11-14 13:54:45 +03:00 committed by GitHub
parent 74b62f4c71
commit 6c3374b874
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -166,7 +166,7 @@ DWORD WINAPI HackThread(HMODULE hModule)
while (!GetModuleHandleA("serverbrowser.dll"))
Sleep(1000);
#ifdef DEBUG
#ifdef CONSOLE
AllocConsole();
FILE* f;
freopen_s(&f, "CONOUT$", "w", stdout);
@ -341,9 +341,7 @@ DWORD WINAPI HackThread(HMODULE hModule)
if (GetAsyncKeyState(VK_INSERT) & 1)
{
opt.show = !opt.show;
#ifdef DEBUG
cout << "Show Menu: " << opt.show << endl;
#endif
printfdbg("Show menu: %d\n", opt.show);
if (!opt.show)
iff.g_pInputSystem->EnableInput(1);
else
@ -457,7 +455,7 @@ DWORD WINAPI HackThread(HMODULE hModule)
Sleep(1000);
#ifdef DEBUG
#ifdef CONSOLE
if (f) fclose(f);
FreeConsole();
#endif