aboutsummaryrefslogtreecommitdiff
path: root/engines/wintermute/base/sound
diff options
context:
space:
mode:
authorEinar Johan Trøan Sømåen2012-07-29 15:03:54 +0200
committerEinar Johan Trøan Sømåen2012-07-29 15:03:54 +0200
commit1f5288d8c17bb65d623e96ab66833ba548c26e70 (patch)
tree96c94c7074b469fee01b6033201c2acd165de560 /engines/wintermute/base/sound
parentda0ba41903bf50c3a6cb2923ca943386cd984f8c (diff)
downloadscummvm-rg350-1f5288d8c17bb65d623e96ab66833ba548c26e70.tar.gz
scummvm-rg350-1f5288d8c17bb65d623e96ab66833ba548c26e70.tar.bz2
scummvm-rg350-1f5288d8c17bb65d623e96ab66833ba548c26e70.zip
WINTERMUTE: Use ConfMan instead of registry.
Diffstat (limited to 'engines/wintermute/base/sound')
-rw-r--r--engines/wintermute/base/sound/base_sound_manager.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/wintermute/base/sound/base_sound_manager.cpp b/engines/wintermute/base/sound/base_sound_manager.cpp
index 03f6fffb58..43109443a7 100644
--- a/engines/wintermute/base/sound/base_sound_manager.cpp
+++ b/engines/wintermute/base/sound/base_sound_manager.cpp
@@ -72,7 +72,7 @@ bool BaseSoundMgr::cleanup() {
//////////////////////////////////////////////////////////////////////////
void BaseSoundMgr::saveSettings() {
if (_soundAvailable) {
- BaseEngine::instance().getRegistry()->writeInt("Audio", "MasterVolume", _volumeMaster);
+ ConfMan.setInt("master_volume", _volumeMaster);
}
}
@@ -83,7 +83,7 @@ bool BaseSoundMgr::initialize() {
if (!g_system->getMixer()->isReady()) {
return STATUS_FAILED;
}
- _volumeMaster = BaseEngine::instance().getRegistry()->readInt("Audio", "MasterVolume", 255);
+ _volumeMaster = (ConfMan.hasKey("master_volume") ? ConfMan.getInt("master_volume") : 255);
_soundAvailable = true;
return STATUS_OK;