aboutsummaryrefslogtreecommitdiff
path: root/engines/queen
diff options
context:
space:
mode:
authorMax Horn2006-04-16 19:23:14 +0000
committerMax Horn2006-04-16 19:23:14 +0000
commit74edd90aba15db1196b16b5eae918347670d11c8 (patch)
tree7410c4e14dadff2c051b42ea3a09d99987b0d6d5 /engines/queen
parent08b9cd7922c48df064c17d71cc306f330043b817 (diff)
downloadscummvm-rg350-74edd90aba15db1196b16b5eae918347670d11c8.tar.gz
scummvm-rg350-74edd90aba15db1196b16b5eae918347670d11c8.tar.bz2
scummvm-rg350-74edd90aba15db1196b16b5eae918347670d11c8.zip
Fix for bug #1471383: Instead of overloading ConfigManager::set, we now have new setInt and setBool methods (matching getInt/getBool), which avoids strange quirks & bugs caused by (char *) being implicitly cast to int (ouch)
svn-id: r21951
Diffstat (limited to 'engines/queen')
-rw-r--r--engines/queen/queen.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/engines/queen/queen.cpp b/engines/queen/queen.cpp
index c87ccd6695..611832c439 100644
--- a/engines/queen/queen.cpp
+++ b/engines/queen/queen.cpp
@@ -194,12 +194,12 @@ void QueenEngine::readOptionSettings() {
}
void QueenEngine::writeOptionSettings() {
- ConfMan.set("music_volume", _music->volume());
- ConfMan.set("music_mute", !_sound->musicOn());
- ConfMan.set("sfx_mute", !_sound->sfxOn());
- ConfMan.set("talkspeed", _talkSpeed);
- ConfMan.set("speech_mute", !_sound->speechOn());
- ConfMan.set("subtitles", _subtitles);
+ ConfMan.setInt("music_volume", _music->volume());
+ ConfMan.setBool("music_mute", !_sound->musicOn());
+ ConfMan.setBool("sfx_mute", !_sound->sfxOn());
+ ConfMan.setInt("talkspeed", _talkSpeed);
+ ConfMan.setBool("speech_mute", !_sound->speechOn());
+ ConfMan.setBool("subtitles", _subtitles);
ConfMan.flushToDisk();
}