diff options
Diffstat (limited to 'engines/saga/saga.cpp')
-rw-r--r-- | engines/saga/saga.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/engines/saga/saga.cpp b/engines/saga/saga.cpp index 17fee5deb6..4f2a71c27c 100644 --- a/engines/saga/saga.cpp +++ b/engines/saga/saga.cpp @@ -532,4 +532,22 @@ void SagaEngine::syncSoundSettings() { _sound->setVolume(); } +void SagaEngine::pauseEngineIntern(bool pause) { + bool isPaused = (_render->getFlags() & RF_RENDERPAUSE); + if (isPaused == pause) + return; + + if (pause) { + _render->setFlag(RF_RENDERPAUSE); + if (!_music->hasDigitalMusic()) + _music->pause(); + } else { + _render->clearFlag(RF_RENDERPAUSE); + if (!_music->hasDigitalMusic()) + _music->resume(); + } + + _mixer->pauseAll(pause); +} + } // End of namespace Saga |