aboutsummaryrefslogtreecommitdiff
path: root/common/gameDetector.cpp
diff options
context:
space:
mode:
authorJames Brown2002-10-28 09:03:02 +0000
committerJames Brown2002-10-28 09:03:02 +0000
commit959a9acf1456f2b39a3b8a20779c71a2637754d2 (patch)
treed9bf3ded96371a8e958d17ce772a8b5b831aa067 /common/gameDetector.cpp
parent2e027179e030600a58ee84cd52780b201f817232 (diff)
downloadscummvm-rg350-959a9acf1456f2b39a3b8a20779c71a2637754d2.tar.gz
scummvm-rg350-959a9acf1456f2b39a3b8a20779c71a2637754d2.tar.bz2
scummvm-rg350-959a9acf1456f2b39a3b8a20779c71a2637754d2.zip
Add support for aliased scummvm config entries.
Eg: [germandott] path=/games/german/dott gameid=tentacle description=the german version of DOTT I havn't finished the Launcher changes to show aliased entries yet, as I need to parse the whole domainmap to do so. svn-id: r5341
Diffstat (limited to 'common/gameDetector.cpp')
-rw-r--r--common/gameDetector.cpp11
1 files changed, 8 insertions, 3 deletions
diff --git a/common/gameDetector.cpp b/common/gameDetector.cpp
index 615220c863..ed129e4397 100644
--- a/common/gameDetector.cpp
+++ b/common/gameDetector.cpp
@@ -518,13 +518,18 @@ const VersionSettings version_settings[] = {
bool GameDetector::detectGame()
{
const VersionSettings *gnl = version_settings;
-
+ char *detectGame;
_gameId = 0;
_gameText.clear();
+
+ if (!(detectGame = (char*)g_config->get("gameid")))
+ detectGame = (char*)_gameFileName.c_str();
+ printf("Looking for %s\n", detectGame);
+
do {
- if (!scumm_stricmp(_gameFileName.c_str(), gnl->filename)) {
+ if (!scumm_stricmp(detectGame, gnl->filename)) {
_gameId = gnl->id;
-
+ _gameRealName = gnl->filename;
_features = gnl->features;
_gameText = gnl->gamename;
debug(1, "Detected game '%s', version %d.%d.%d",