changed as per Reavers request
This commit is contained in:
parent
61e5435fca
commit
d0d1894721
@ -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([]()
|
||||
|
Loading…
x
Reference in New Issue
Block a user