aboutsummaryrefslogtreecommitdiff
path: root/base/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'base/main.cpp')
-rw-r--r--base/main.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/base/main.cpp b/base/main.cpp
index 656a24b94b..ccd213eb31 100644
--- a/base/main.cpp
+++ b/base/main.cpp
@@ -558,9 +558,17 @@ extern "C" int scummvm_main(int argc, const char * const argv[]) {
break;
}
#endif
+#ifdef USE_TTS
+ Common::TextToSpeechManager *ttsMan = g_system->getTextToSpeechManager();
+ ttsMan->pushState();
+#endif
// Try to run the game
Common::Error result = runGame(plugin, system, specialDebug);
+#ifdef USE_TTS
+ ttsMan->popState();
+#endif
+
#ifdef ENABLE_EVENTRECORDER
// Flush Event recorder file. The recorder does not get reinitialized for next game
// which is intentional. Only single game per session is allowed.