[Scummvm-git-logs] scummvm master -> ce1303845eeb2cafd232032c4dc85481e93a40cc
sev-
noreply at scummvm.org
Sun Sep 1 16:43:54 UTC 2024
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
ce1303845e QDENGINE: Persist ConfMan changes across gameruns for sound/music
Commit: ce1303845eeb2cafd232032c4dc85481e93a40cc
https://github.com/scummvm/scummvm/commit/ce1303845eeb2cafd232032c4dc85481e93a40cc
Author: kunxl-gg (tiwari.25 at iitj.ac.in)
Date: 2024-09-01T18:43:52+02:00
Commit Message:
QDENGINE: Persist ConfMan changes across gameruns for sound/music
Signed-off-by: kunxl-gg <tiwari.25 at iitj.ac.in>
Changed paths:
engines/qdengine/qdcore/qd_interface_dispatcher.cpp
diff --git a/engines/qdengine/qdcore/qd_interface_dispatcher.cpp b/engines/qdengine/qdcore/qd_interface_dispatcher.cpp
index 54d0897e42f..80f0faea6cc 100644
--- a/engines/qdengine/qdcore/qd_interface_dispatcher.cpp
+++ b/engines/qdengine/qdcore/qd_interface_dispatcher.cpp
@@ -665,18 +665,22 @@ bool qdInterfaceDispatcher::set_option_value(int option_id, int value, const cha
switch (option_id) {
case qdInterfaceElement::OPTION_SOUND:
ConfMan.setBool("enable_sound", value > 0);
+ ConfMan.flushToDisk();
g_engine->syncSoundSettings();
return true;
case qdInterfaceElement::OPTION_SOUND_VOLUME:
ConfMan.setInt("sound_volume", value);
+ ConfMan.flushToDisk();
g_engine->syncSoundSettings();
return true;
case qdInterfaceElement::OPTION_MUSIC:
ConfMan.setBool("enable_music", value > 0);
+ ConfMan.flushToDisk();
g_engine->syncSoundSettings();
return true;
case qdInterfaceElement::OPTION_MUSIC_VOLUME:
ConfMan.setInt("music_volume", value);
+ ConfMan.flushToDisk();
g_engine->syncSoundSettings();
return true;
case qdInterfaceElement::OPTION_ACTIVE_PERSONAGE:
More information about the Scummvm-git-logs
mailing list