1
0
mirror of synced 2024-11-28 00:20:52 +01:00

fix Demul not working on older versions

This commit is contained in:
Aaron M 2020-05-25 09:48:40 +12:00
parent 6b9037174f
commit e161919b32

View File

@ -118,6 +118,7 @@ static BOOL CALLBACK FindWindowBySubstr(HWND hwnd, LPARAM substring)
}
const TCHAR substring[] = TEXT("FPS");
const TCHAR substring0[] = TEXT("spg");
const TCHAR substring1[] = TEXT("NASCAR");
const TCHAR substring2[] = TEXT("Initial D Arcade Stage");
@ -125,7 +126,7 @@ void Demul::FFBLoop(EffectConstants* constants, Helpers* helpers, EffectTriggers
if (!WindowSearch)
{
if (!EnumWindows(FindWindowBySubstr, (LPARAM)substring))
if (!EnumWindows(FindWindowBySubstr, (LPARAM)substring) || !EnumWindows(FindWindowBySubstr, (LPARAM)substring0))
{
if (!EnumWindows(FindWindowBySubstr, (LPARAM)substring1))
{