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

Merge remote-tracking branch 'origin/master'

This commit is contained in:
00C0FFEE 2020-11-16 22:02:20 +01:00
commit f446178223
2 changed files with 4 additions and 2 deletions

View File

@ -233,6 +233,7 @@ D3DPRESENT_PARAMETERS* pPresentationParameters_RT9;
uintptr_t d3dcall;
void __stdcall D3D9CreateParamPatch()
{
#if _M_IX86
__asm mov d3dcall , edx
__asm mov edx, [ebp + 0x1c]
__asm mov pPresentationParameters_RT9 , edx
@ -243,6 +244,7 @@ void __stdcall D3D9CreateParamPatch()
__asm mov edx , pPresentationParameters_RT9
__asm mov [ebp + 0x1c], edx
__asm mov edx , d3dcall
#endif
return;
}

View File

@ -84,7 +84,7 @@ extern linb::ini config;
static InitFunction initFunc([]()
{
if (GameDetect::currentGame == GameID::BG4 || GameDetect::currentGame == GameID::BG4_Eng || GameDetect::currentGame == GameID::JLeague || GameDetect::currentGame == GameID::TER || GameDetect::currentGame == GameID::RumbleFish2 || GameDetect::currentGame == GameID::DirtyDrivin))
if (GameDetect::currentGame == GameID::BG4 || GameDetect::currentGame == GameID::BG4_Eng || GameDetect::currentGame == GameID::JLeague || GameDetect::currentGame == GameID::TER || GameDetect::currentGame == GameID::RumbleFish2 || GameDetect::currentGame == GameID::DirtyDrivin)
return;
if (GameDetect::currentGame == GameID::TroubleWitches && !ToBool(config["General"]["Windowed"]))
{
@ -95,4 +95,4 @@ static InitFunction initFunc([]()
InitD3D9WindowHook();
}
});
#pragma optimize("", on)
#pragma optimize("", on)