1
0
mirror of synced 2024-12-01 01:37:23 +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 substring[] = TEXT("FPS");
const TCHAR substring0[] = TEXT("spg");
const TCHAR substring1[] = TEXT("NASCAR"); const TCHAR substring1[] = TEXT("NASCAR");
const TCHAR substring2[] = TEXT("Initial D Arcade Stage"); const TCHAR substring2[] = TEXT("Initial D Arcade Stage");
@ -125,7 +126,7 @@ void Demul::FFBLoop(EffectConstants* constants, Helpers* helpers, EffectTriggers
if (!WindowSearch) if (!WindowSearch)
{ {
if (!EnumWindows(FindWindowBySubstr, (LPARAM)substring)) if (!EnumWindows(FindWindowBySubstr, (LPARAM)substring) || !EnumWindows(FindWindowBySubstr, (LPARAM)substring0))
{ {
if (!EnumWindows(FindWindowBySubstr, (LPARAM)substring1)) if (!EnumWindows(FindWindowBySubstr, (LPARAM)substring1))
{ {