diff options
Diffstat (limited to 'engines/cge2/toolbar.cpp')
-rw-r--r-- | engines/cge2/toolbar.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/engines/cge2/toolbar.cpp b/engines/cge2/toolbar.cpp index 2b7604a447..dbbed3480e 100644 --- a/engines/cge2/toolbar.cpp +++ b/engines/cge2/toolbar.cpp @@ -212,4 +212,14 @@ void CGE2Engine::initVolumeSwitch(Sprite *volSwitch, int val) { volSwitch->step(state); } +void CGE2Engine::checkMute() { + bool mute = ConfMan.getBool("mute"); + bool mutedChanged = mute != _muteAll; + if (mutedChanged) { + switchMusic(); + switchVox(); + _muteAll = mute; + } +} + } // End of namespace CGE2 |