diff options
author | uruk | 2014-07-24 16:50:36 +0200 |
---|---|---|
committer | uruk | 2014-07-24 16:50:36 +0200 |
commit | 755fedcceba70267ea41ea5fed5a4e021c05b0e7 (patch) | |
tree | 2905393047702ee4ae6866235ba2ede5cbd62d8f /engines/cge2/cge2.cpp | |
parent | a6eb08903351d916d2c243ca031392a5ebd2240a (diff) | |
download | scummvm-rg350-755fedcceba70267ea41ea5fed5a4e021c05b0e7.tar.gz scummvm-rg350-755fedcceba70267ea41ea5fed5a4e021c05b0e7.tar.bz2 scummvm-rg350-755fedcceba70267ea41ea5fed5a4e021c05b0e7.zip |
CGE2: Set speech only/text only/both modes according to Launcher options.
Diffstat (limited to 'engines/cge2/cge2.cpp')
-rw-r--r-- | engines/cge2/cge2.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/engines/cge2/cge2.cpp b/engines/cge2/cge2.cpp index 55ac835637..94b876c724 100644 --- a/engines/cge2/cge2.cpp +++ b/engines/cge2/cge2.cpp @@ -91,6 +91,7 @@ CGE2Engine::CGE2Engine(OSystem *syst, const ADGameDescription *gameDescription) _endGame = false; for (int i = 0; i < 4; i++) _flag[i] = false; + _enaVox = true; _sayCap = true; _sayVox = true; _oldSayVox = false; @@ -98,7 +99,6 @@ CGE2Engine::CGE2Engine(OSystem *syst, const ADGameDescription *gameDescription) _midiNotify = nullptr; _spriteNotify = nullptr; _enaCap = true; - _enaVox = true; } void CGE2Engine::init() { @@ -177,4 +177,11 @@ Common::Error CGE2Engine::run() { return Common::kNoError; } +void CGE2Engine::syncSoundSettings() { + Engine::syncSoundSettings(); + + _enaCap = _sayCap = ConfMan.getBool("subtitles"); + _enaVox = _sayVox = !ConfMan.getBool("speech_mute"); +} + } // End of namespace CGE2 |