Added system taskkill for InpWrapper
This commit is contained in:
parent
8a5a55ce88
commit
bf2e810657
@ -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 */
|
||||
|
Loading…
x
Reference in New Issue
Block a user