Fix build if atlstr.h is missing
This commit is contained in:
parent
a1c6059ecd
commit
43cfbcba3a
@ -1,4 +1,5 @@
|
||||
#include <StdInc.h>
|
||||
#if __has_include(<atlstr.h>)
|
||||
#include <StdInc.h>
|
||||
#include "Utility/InitFunction.h"
|
||||
#include "Functions/Global.h"
|
||||
#include "Utility\Hooking.Patterns.h"
|
||||
@ -1071,4 +1072,5 @@ static InitFunction DirtyDrivinFunc([]()
|
||||
|
||||
}, GameID::DirtyDrivin);
|
||||
#endif
|
||||
#pragma optimize("", on)
|
||||
#pragma optimize("", on)
|
||||
#endif
|
@ -1,3 +1,4 @@
|
||||
#if __has_include(<atlstr.h>)
|
||||
#include <StdInc.h>
|
||||
#include "Utility/InitFunction.h"
|
||||
#include "Functions/Global.h"
|
||||
@ -435,3 +436,4 @@ static InitFunction FNFSBFunc([]()
|
||||
}
|
||||
|
||||
}, GameID::FNFSB);
|
||||
#endif
|
@ -1,4 +1,5 @@
|
||||
#include <StdInc.h>
|
||||
#if __has_include(<atlstr.h>)
|
||||
#include <StdInc.h>
|
||||
#include "Utility/InitFunction.h"
|
||||
#include "Functions/Global.h"
|
||||
#include "Functions/GlobalRegHooks.h"
|
||||
@ -512,3 +513,4 @@ static InitFunction GHAFunc([]()
|
||||
}
|
||||
|
||||
}, GameID::GHA);
|
||||
#endif
|
@ -1,4 +1,5 @@
|
||||
#include <StdInc.h>
|
||||
#if __has_include(<atlstr.h>)
|
||||
#include <StdInc.h>
|
||||
#include "Utility/InitFunction.h"
|
||||
#include "Functions/Global.h"
|
||||
#include "Utility\Hooking.Patterns.h"
|
||||
@ -207,4 +208,5 @@ static InitFunction JLeagueFunc([]()
|
||||
}
|
||||
|
||||
}, GameID::JLeague);
|
||||
#endif
|
||||
#endif
|
@ -1,3 +1,4 @@
|
||||
#if __has_include(<atlstr.h>)
|
||||
#include <StdInc.h>
|
||||
#include "Utility/InitFunction.h"
|
||||
#include "Functions/Global.h"
|
||||
@ -2117,4 +2118,5 @@ static InitFunction SFVFunc([]()
|
||||
MH_CreateHookApi(L"xinput1_3.dll", "XInputGetState", &XInputGetStateSFV, NULL);
|
||||
MH_EnableHook(MH_ALL_HOOKS);
|
||||
}, GameID::SFV);
|
||||
#endif
|
||||
#endif
|
@ -5,7 +5,9 @@
|
||||
#include <objbase.h>
|
||||
#include "Utility/GameDetect.h"
|
||||
#include <string>
|
||||
#if __has_include(<atlstr.h>)
|
||||
#include <atlstr.h>
|
||||
#endif
|
||||
#include <windows.h>
|
||||
|
||||
LSTATUS(__stdcall *orig_RegOpenKeyExA)(
|
||||
@ -188,6 +190,7 @@ LSTATUS __stdcall RegQueryValueExWGlobalWrap(
|
||||
LPDWORD lpcbData
|
||||
)
|
||||
{
|
||||
#if __has_include(<atlstr.h>)
|
||||
if (GameDetect::currentGame == GameID::GHA)
|
||||
{
|
||||
if (_wcsicmp(lpValueName, L"Language") == 0)
|
||||
@ -210,6 +213,7 @@ LSTATUS __stdcall RegQueryValueExWGlobalWrap(
|
||||
return ERROR_SUCCESS;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
return orig_RegQueryValueExW(hKey, lpValueName, lpReserved, lpType, lpData, lpcbData);
|
||||
}
|
||||
|
@ -85,10 +85,12 @@ DWORD WINAPI XInputGetState
|
||||
{
|
||||
gamepadState.wButtons = *ffbOffset;
|
||||
}
|
||||
#if __has_include(<atlstr.h>)
|
||||
else if (GameDetect::currentGame == GameID::GHA)
|
||||
{
|
||||
GHAInputs();
|
||||
}
|
||||
#endif
|
||||
else if (GameDetect::currentGame == GameID::JLeague)
|
||||
{
|
||||
gamepadState.wButtons = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user