aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorJamieson Christian2003-06-11 06:49:47 +0000
committerJamieson Christian2003-06-11 06:49:47 +0000
commitc117ef1e5082bdd831c2412b20ddeb3b2056ff63 (patch)
tree19152e995eaf05621379457eb0a866bb175775da /common
parent01ba60ccef360f81460900154f9e35265fb40618 (diff)
downloadscummvm-rg350-c117ef1e5082bdd831c2412b20ddeb3b2056ff63.tar.gz
scummvm-rg350-c117ef1e5082bdd831c2412b20ddeb3b2056ff63.tar.bz2
scummvm-rg350-c117ef1e5082bdd831c2412b20ddeb3b2056ff63.zip
Fix for bug [741592] GUI: Switching music driver mixes up music
Implement true music driver selection from the GUI options dialog. This implementation depends on a new, transient config domain called "user-overrides". Probably any other config changes made from the options dialog will need to go into this domain, which is now loaded after the game settings are loaded. I hope this is the right way to do it. I'm still a little fuzzy about our game settings architecture. If anybody suddenly gets a "[user-overrides]" section showing up in their scummvm.ini or scummvm.rc files, you'll know why. svn-id: r8434
Diffstat (limited to 'common')
-rw-r--r--common/gameDetector.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/common/gameDetector.cpp b/common/gameDetector.cpp
index 2d656e19c7..5192371591 100644
--- a/common/gameDetector.cpp
+++ b/common/gameDetector.cpp
@@ -487,6 +487,9 @@ void GameDetector::setGame(const String &name) {
g_config->rename_domain(name, "game-specific");
g_config->rename_domain("game-specific", name);
updateconfig();
+ g_config->set_domain ("user-overrides");
+ updateconfig();
+ g_config->delete_domain ("user-overrides");
}
int GameDetector::parseGraphicsMode(const char *s) {