(Win32) Unrevert TTS fallback (#17643)

Originally implemented in 274d47f
This commit is contained in:
Viačasłaŭ 2025-03-01 12:04:29 +03:00 committed by GitHub
parent 6a717fd44c
commit 6bfe3fcb43
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1124,9 +1124,12 @@ static bool accessibility_speak_windows(int speed,
if (!wc || res != 0)
{
RARCH_ERR("Error communicating with NVDA\n");
/* Fallback on powershell immediately and retry */
g_plat_win32_flags &= ~PLAT_WIN32_FLAG_USE_NVDA;
g_plat_win32_flags |= PLAT_WIN32_FLAG_USE_POWERSHELL;
if (wc)
free(wc);
return false;
return accessibility_speak_windows(speed, speak_text, priority);
}
nvdaController_cancelSpeech_func();