1
0
mirror of synced 2025-01-20 17:48:51 +01:00

changed as per Reavers request

This commit is contained in:
Aaron M 2019-11-16 12:12:02 +13:00
parent 61e5435fca
commit d0d1894721

View File

@ -2,6 +2,7 @@
#include "Utility/InitFunction.h"
#include "Functions/Global.h"
#include "Utility\Hooking.Patterns.h"
#include "Utility/GameDetect.h"
#pragma comment(lib, "Ws2_32.lib")
#ifndef _M_AMD64
@ -112,8 +113,14 @@ DWORD WINAPI XInputGetStateGRID
SetButton(myPointer + 0x34, buttons2 & 0x40);
SetButton(myPointer + 0x40c, buttons2 & 0x80);
}
return 0;
if (GameDetect::currentGame == GameID::GRID)
{
return ERROR_SUCCESS;
}
else
{
ERROR_DEVICE_NOT_CONNECTED;
}
}
static InitFunction GRIDFunc([]()