aboutsummaryrefslogtreecommitdiff
path: root/base/gameDetector.cpp
diff options
context:
space:
mode:
authorMax Horn2006-04-15 13:12:03 +0000
committerMax Horn2006-04-15 13:12:03 +0000
commit3628629007e4b97b7b634d0545e3acd474c7708b (patch)
tree4c357399bf7bb1ea4fbea8faa91fc631b2ef5847 /base/gameDetector.cpp
parent2f024e270199d5fc2d38d62150b689a1fdca0b1d (diff)
downloadscummvm-rg350-3628629007e4b97b7b634d0545e3acd474c7708b.tar.gz
scummvm-rg350-3628629007e4b97b7b634d0545e3acd474c7708b.tar.bz2
scummvm-rg350-3628629007e4b97b7b634d0545e3acd474c7708b.zip
- Replaced ConfigManager::_globalDomains by _appDomain (we don't support multiple global domains anymore)
- Restructured parts of the ConfigManager to be more consistent and a bit easier to understand - Introduced ConfigManager::getDomain, potentially useful for code that needs to edit a specific domain (like the option dialogs) - Allow passing an empty string to ConfigManager::setActiveDomain(), to reset the active domain - Discard all transient config options (i.e. mostly command line settings) when entering the launcher, and after an engine exits - Introduced various hidden easter bugs. Happy easter, and have fun searching! svn-id: r21906
Diffstat (limited to 'base/gameDetector.cpp')
-rw-r--r--base/gameDetector.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/base/gameDetector.cpp b/base/gameDetector.cpp
index b21ccffb6b..fe762b4994 100644
--- a/base/gameDetector.cpp
+++ b/base/gameDetector.cpp
@@ -602,6 +602,10 @@ void GameDetector::setTarget(const String &target) {
_gameid = ConfMan.get("gameid");
else
_gameid = _targetName;
+
+ // TODO: In the future, simply insert the gameid into the transient domain.
+ // That way, all code (including backends) can reliably access it.
+ //ConfMan.set("gameid", _gameid, Common::ConfigManager::kTransientDomain);
}
bool GameDetector::detectMain() {