From 74edd90aba15db1196b16b5eae918347670d11c8 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Sun, 16 Apr 2006 19:23:14 +0000 Subject: 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 --- engines/sword2/sword2.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'engines/sword2/sword2.cpp') 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(); } -- cgit v1.2.3