diff options
author | Max Horn | 2006-04-16 19:23:14 +0000 |
---|---|---|
committer | Max Horn | 2006-04-16 19:23:14 +0000 |
commit | 74edd90aba15db1196b16b5eae918347670d11c8 (patch) | |
tree | 7410c4e14dadff2c051b42ea3a09d99987b0d6d5 /engines/sword2 | |
parent | 08b9cd7922c48df064c17d71cc306f330043b817 (diff) | |
download | scummvm-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/sword2')
-rw-r--r-- | engines/sword2/sword2.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/engines/sword2/sword2.cpp b/engines/sword2/sword2.cpp index 0d354a3f35..5982e62e4d 100644 --- a/engines/sword2/sword2.cpp +++ b/engines/sword2/sword2.cpp @@ -216,16 +216,16 @@ void Sword2Engine::readSettings() { } void Sword2Engine::writeSettings() { - ConfMan.set("music_volume", _mixer->getVolumeForSoundType(Audio::Mixer::kMusicSoundType)); - ConfMan.set("speech_volume", _mixer->getVolumeForSoundType(Audio::Mixer::kSpeechSoundType)); - ConfMan.set("sfx_volume", _mixer->getVolumeForSoundType(Audio::Mixer::kSFXSoundType)); - ConfMan.set("music_mute", _sound->isMusicMute()); - ConfMan.set("speech_mute", _sound->isSpeechMute()); - ConfMan.set("sfx_mute", _sound->isFxMute()); - ConfMan.set("gfx_details", _screen->getRenderLevel()); - ConfMan.set("subtitles", getSubtitles()); - ConfMan.set("object_labels", _mouse->getObjectLabels()); - ConfMan.set("reverse_stereo", _sound->isReverseStereo()); + ConfMan.setInt("music_volume", _mixer->getVolumeForSoundType(Audio::Mixer::kMusicSoundType)); + ConfMan.setInt("speech_volume", _mixer->getVolumeForSoundType(Audio::Mixer::kSpeechSoundType)); + ConfMan.setInt("sfx_volume", _mixer->getVolumeForSoundType(Audio::Mixer::kSFXSoundType)); + ConfMan.setBool("music_mute", _sound->isMusicMute()); + ConfMan.setBool("speech_mute", _sound->isSpeechMute()); + ConfMan.setBool("sfx_mute", _sound->isFxMute()); + ConfMan.setInt("gfx_details", _screen->getRenderLevel()); + ConfMan.setBool("subtitles", getSubtitles()); + ConfMan.setBool("object_labels", _mouse->getObjectLabels()); + ConfMan.setInt("reverse_stereo", _sound->isReverseStereo()); ConfMan.flushToDisk(); } |