[Scummvm-git-logs] scummvm branch-2-1 -> 4f116fc808cb0e17d857e97cfa2396e910962e74
lotharsm
serra at scummvm.org
Mon Oct 14 20:37:49 CEST 2019
This automated email contains information about 2 new commits which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
e86f556f85 TTS: Fix "No voice available" warning
4f116fc808 CREATE_PROJECT: Enable TTS on msvc by default
Commit: e86f556f85fe2b535a08e2265668409b8c1fa98f
https://github.com/scummvm/scummvm/commit/e86f556f85fe2b535a08e2265668409b8c1fa98f
Author: Jaromir Wysoglad (jaromirwysoglad at gmail.com)
Date: 2019-10-14T20:37:34+02:00
Commit Message:
TTS: Fix "No voice available" warning
Changed paths:
base/main.cpp
diff --git a/base/main.cpp b/base/main.cpp
index a9602e0..750e09e 100644
--- a/base/main.cpp
+++ b/base/main.cpp
@@ -264,9 +264,7 @@ static Common::Error runGame(const Plugin *plugin, OSystem &system, const Common
#ifdef USE_TTS
Common::TextToSpeechManager *ttsMan;
if ((ttsMan = g_system->getTextToSpeechManager()) != nullptr) {
- Common::String language = ConfMan.get("language");
- language.setChar(2, '\0');
- ttsMan->setLanguage(language);
+ ttsMan->setLanguage(ConfMan.get("language"));
}
#endif // USE_TTS
}
@@ -301,9 +299,7 @@ static Common::Error runGame(const Plugin *plugin, OSystem &system, const Common
#ifdef USE_TTS
Common::TextToSpeechManager *ttsMan;
if ((ttsMan = g_system->getTextToSpeechManager()) != nullptr) {
- Common::String language = ConfMan.get("language");
- language.setChar(2, '\0');
- ttsMan->setLanguage(language);
+ ttsMan->setLanguage(ConfMan.get("language"));
}
#endif // USE_TTS
#endif // USE_TRANSLATION
Commit: 4f116fc808cb0e17d857e97cfa2396e910962e74
https://github.com/scummvm/scummvm/commit/4f116fc808cb0e17d857e97cfa2396e910962e74
Author: Jaromir Wysoglad (jaromirwysoglad at gmail.com)
Date: 2019-10-14T20:37:34+02:00
Commit Message:
CREATE_PROJECT: Enable TTS on msvc by default
Changed paths:
devtools/create_project/create_project.cpp
diff --git a/devtools/create_project/create_project.cpp b/devtools/create_project/create_project.cpp
index 30f4164..391449c 100644
--- a/devtools/create_project/create_project.cpp
+++ b/devtools/create_project/create_project.cpp
@@ -1095,7 +1095,7 @@ const Feature s_features[] = {
{ "langdetect", "USE_DETECTLANG", "", true, "System language detection support" }, // This feature actually depends on "translation", there
// is just no current way of properly detecting this...
{ "text-console", "USE_TEXT_CONSOLE_FOR_DEBUGGER", "", false, "Text console debugger" }, // This feature is always applied in xcode projects
- { "tts", "USE_TTS", "", false, "Text to speech support"}
+ { "tts", "USE_TTS", "", true, "Text to speech support"}
};
const Tool s_tools[] = {
More information about the Scummvm-git-logs
mailing list