TTS: Implement tts state switching when needed.
The state has to be pushed and poped when there is a transition between game and gui code.
This commit is contained in:
parent
33549d9c02
commit
324a90f4f6
3 changed files with 21 additions and 1 deletions
|
@ -557,10 +557,18 @@ extern "C" int scummvm_main(int argc, const char * const argv[]) {
|
|||
debug("info:author=%s name=%s description=%s", record.getHeader().author.c_str(), record.getHeader().name.c_str(), record.getHeader().description.c_str());
|
||||
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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue