1
0
mirror of synced 2025-02-01 04:15:50 +01:00

Added system taskkill for InpWrapper

This commit is contained in:
Boomslangnz 2018-11-16 08:36:29 +13:00
parent 8a5a55ce88
commit bf2e810657

View File

@ -1,6 +1,7 @@
#include <StdInc.h>
#include <Utility/InitFunction.h>
#include "Global.h"
#include "Utility/GameDetect.h"
#pragma optimize("", off)
void *__cdecl memcpy_0(void *a1, const void *a2, size_t a3)
@ -35,20 +36,27 @@ std::wstring utf8_decode(const std::string &str)
return wstrTo;
}
DWORD WINAPI QuitGameThread(__in LPVOID lpParameter)
{
while (true)
{
if (GetAsyncKeyState(VK_ESCAPE))
{
#ifndef _DEBUG
TerminateProcess(GetCurrentProcess(), 0);
#endif
//ExitProcess(0);
}
Sleep(300);
}
DWORD WINAPI QuitGameThread(__in LPVOID lpParameter)
{
while (true)
{
if ((GameDetect::currentGame == GameID::Daytona3) && (GetAsyncKeyState(VK_ESCAPE)))
{
#ifndef _DEBUG
system("taskkill /f /im InpWrapper.exe");
TerminateProcess(GetCurrentProcess(), 0);
#endif
}
else if (GetAsyncKeyState(VK_ESCAPE))
{
#ifndef _DEBUG
TerminateProcess(GetCurrentProcess(), 0);
#endif
//ExitProcess(0);
}
Sleep(300);
}
}
/* WINDOW HOOKS */