[Scummvm-git-logs] scummvm master -> d68baf400872abbcdbda67814b6b19f43603cd0c

vyzigold smulumas at gmail.com
Mon Oct 14 01:39:19 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:
9a7a7743bb TTS: Fix "No voice available" warning
d68baf4008 CREATE_PROJECT: Enable TTS on msvc by default


Commit: 9a7a7743bbad78d32a723a8a7c92393a348edc34
    https://github.com/scummvm/scummvm/commit/9a7a7743bbad78d32a723a8a7c92393a348edc34
Author: Jaromir Wysoglad (jaromirwysoglad at gmail.com)
Date: 2019-10-14T01:34:54+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: d68baf400872abbcdbda67814b6b19f43603cd0c
    https://github.com/scummvm/scummvm/commit/d68baf400872abbcdbda67814b6b19f43603cd0c
Author: Jaromir Wysoglad (jaromirwysoglad at gmail.com)
Date: 2019-10-14T01:34:54+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