mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 22:20:21 +00:00
Small style nits
This commit is contained in:
parent
10546594de
commit
d228e5f759
@ -1035,29 +1035,25 @@ static bool accessibility_speak_windows(int speed,
|
||||
|
||||
if (USE_POWERSHELL)
|
||||
{
|
||||
|
||||
|
||||
if (strlen(language) > 0)
|
||||
{
|
||||
nbytes_cmd = snprintf(NULL, 0,
|
||||
"powershell.exe -NoProfile -WindowStyle Hidden -Command \"Add-Type -AssemblyName System.Speech; $synth = New-Object System.Speech.Synthesis.SpeechSynthesizer; $synth.SelectVoice(\\\"%s\\\"); $synth.Rate = %s; $synth.Speak(\\\"%s\\\");\"", language, speeds[speed-1], (char*) speak_text) + 1;
|
||||
cmd = malloc(nbytes_cmd);
|
||||
if(!cmd)return false;
|
||||
"powershell.exe -NoProfile -WindowStyle Hidden -Command \"Add-Type -AssemblyName System.Speech; $synth = New-Object System.Speech.Synthesis.SpeechSynthesizer; $synth.SelectVoice(\\\"%s\\\"); $synth.Rate = %s; $synth.Speak(\\\"%s\\\");\"", language, speeds[speed-1], (char*) speak_text) + 1;
|
||||
if (!(cmd = malloc(nbytes_cmd)))
|
||||
return false;
|
||||
snprintf(cmd, nbytes_cmd,
|
||||
"powershell.exe -NoProfile -WindowStyle Hidden -Command \"Add-Type -AssemblyName System.Speech; $synth = New-Object System.Speech.Synthesis.SpeechSynthesizer; $synth.SelectVoice(\\\"%s\\\"); $synth.Rate = %s; $synth.Speak(\\\"%s\\\");\"", language, speeds[speed-1], (char*) speak_text);
|
||||
"powershell.exe -NoProfile -WindowStyle Hidden -Command \"Add-Type -AssemblyName System.Speech; $synth = New-Object System.Speech.Synthesis.SpeechSynthesizer; $synth.SelectVoice(\\\"%s\\\"); $synth.Rate = %s; $synth.Speak(\\\"%s\\\");\"", language, speeds[speed-1], (char*) speak_text);
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
|
||||
nbytes_cmd = snprintf(NULL, 0,
|
||||
nbytes_cmd = snprintf(NULL, 0,
|
||||
"powershell.exe -NoProfile -WindowStyle Hidden -Command \"Add-Type -AssemblyName System.Speech; $synth = New-Object System.Speech.Synthesis.SpeechSynthesizer; $synth.Rate = %s; $synth.Speak(\\\"%s\\\");\"", speeds[speed-1], (char*) speak_text) + 1;
|
||||
cmd = malloc(nbytes_cmd);
|
||||
if(!cmd)return false;
|
||||
snprintf(cmd, nbytes_cmd,
|
||||
"powershell.exe -NoProfile -WindowStyle Hidden -Command \"Add-Type -AssemblyName System.Speech; $synth = New-Object System.Speech.Synthesis.SpeechSynthesizer; $synth.Rate = %s; $synth.Speak(\\\"%s\\\");\"", speeds[speed-1], (char*) speak_text);
|
||||
if (!(cmd = malloc(nbytes_cmd)))
|
||||
return false;
|
||||
snprintf(cmd, nbytes_cmd,
|
||||
"powershell.exe -NoProfile -WindowStyle Hidden -Command \"Add-Type -AssemblyName System.Speech; $synth = New-Object System.Speech.Synthesis.SpeechSynthesizer; $synth.Rate = %s; $synth.Speak(\\\"%s\\\");\"", speeds[speed-1], (char*) speak_text);
|
||||
}
|
||||
|
||||
|
||||
if (pi_set)
|
||||
terminate_win32_process(g_pi);
|
||||
res = create_win32_process(cmd);
|
||||
|
Loading…
x
Reference in New Issue
Block a user