diff options
author | Joost Peters | 2006-01-17 00:24:01 +0000 |
---|---|---|
committer | Joost Peters | 2006-01-17 00:24:01 +0000 |
commit | 98a949f5b74753543cef43975ea56ede7047e739 (patch) | |
tree | 45ec3ef40871789be44881386e8f6e1f9fb0140b /sky/control.cpp | |
parent | 6f445e3d8d9a3c48bf412b4b97a14b7166711903 (diff) | |
download | scummvm-rg350-98a949f5b74753543cef43975ea56ede7047e739.tar.gz scummvm-rg350-98a949f5b74753543cef43975ea56ede7047e739.tar.bz2 scummvm-rg350-98a949f5b74753543cef43975ea56ede7047e739.zip |
Commit patch #1171517 by salty-horse (save speech and sfx preferences BASS engine in config file)
svn-id: r20063
Diffstat (limited to 'sky/control.cpp')
-rw-r--r-- | sky/control.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sky/control.cpp b/sky/control.cpp index 90adcf7f05..95b7e1a9cf 100644 --- a/sky/control.cpp +++ b/sky/control.cpp @@ -714,6 +714,9 @@ uint16 Control::toggleFx(ConResource *pButton) { pButton->_text = 0x7000 + 86; _statusBar->setToText(0x7000 + 86); } + + ConfMan.set("sfx_mute", (SkyEngine::_systemVars.systemFlags & SF_FX_OFF) != 0); + pButton->drawToScreen(WITH_MASK); buttonControl(pButton); _system->updateScreen(); @@ -737,6 +740,7 @@ uint16 Control::toggleText(void) { } ConfMan.set("subtitles", (flags & SF_ALLOW_TEXT) != 0); + ConfMan.set("speech_mute", (flags & SF_ALLOW_SPEECH) == 0); SkyEngine::_systemVars.systemFlags |= flags; |