aboutsummaryrefslogtreecommitdiff
path: root/engines/cge2/cge2.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/cge2/cge2.cpp')
-rw-r--r--engines/cge2/cge2.cpp20
1 files changed, 7 insertions, 13 deletions
diff --git a/engines/cge2/cge2.cpp b/engines/cge2/cge2.cpp
index 9c16bd4e0c..f3bc1de44c 100644
--- a/engines/cge2/cge2.cpp
+++ b/engines/cge2/cge2.cpp
@@ -96,15 +96,12 @@ CGE2Engine::CGE2Engine(OSystem *syst, const ADGameDescription *gameDescription)
_midiNotify = nullptr;
_spriteNotify = nullptr;
- _enaCap = true;
- _enaVox = true;
- _sayCap = true;
- _sayVox = true;
+ _sayCap = ConfMan.getBool("subtitles");
+ _sayVox = !ConfMan.getBool("speech_mute");
if (ConfMan.getBool("mute")) {
- _oldSpeechVolume = _oldMusicVolume = _oldSfxVolume = 0;
+ _oldMusicVolume = _oldSfxVolume = 0;
_music = _sfx = false;
} else {
- _oldSpeechVolume = ConfMan.getInt("speech_volume");
_oldMusicVolume = ConfMan.getInt("music_volume");
_oldSfxVolume = ConfMan.getInt("sfx_volume");
_music = _oldMusicVolume != 0;
@@ -192,20 +189,17 @@ bool CGE2Engine::hasFeature(EngineFeature f) const {
Common::Error CGE2Engine::run() {
syncSoundSettings();
- syncSpeechSettings();
initGraphics(kScrWidth, kScrHeight, false);
init();
cge2_main();
deinit();
- return Common::kNoError;
-}
+ ConfMan.setBool("subtitles", _sayCap);
+ ConfMan.setBool("speech_mute", !_sayVox);
+ ConfMan.flushToDisk();
-void CGE2Engine::syncSpeechSettings() {
- _enaCap = _sayCap = ConfMan.getBool("subtitles");
- _enaVox = _sayVox = !ConfMan.getBool("speech_mute");
+ return Common::kNoError;
}
-
} // End of namespace CGE2