aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Noble2002-04-27 21:43:30 +0000
committerNicolas Noble2002-04-27 21:43:30 +0000
commit5b0d856a121cafc2410abce41bfae6488f9926c5 (patch)
tree685a408441c4288adb1f20b7abd3764aceedd221
parent8537266a89a8b08d0b5d2d1accb01e0e67cb89d4 (diff)
downloadscummvm-rg350-5b0d856a121cafc2410abce41bfae6488f9926c5.tar.gz
scummvm-rg350-5b0d856a121cafc2410abce41bfae6488f9926c5.tar.bz2
scummvm-rg350-5b0d856a121cafc2410abce41bfae6488f9926c5.zip
Fixed the 'config-file is predominant upon command line' bug...
svn-id: r4117
-rw-r--r--config-file.cpp1
-rw-r--r--gameDetector.cpp3
2 files changed, 3 insertions, 1 deletions
diff --git a/config-file.cpp b/config-file.cpp
index 4ff771d691..edde8d554f 100644
--- a/config-file.cpp
+++ b/config-file.cpp
@@ -289,6 +289,7 @@ void Config::rename_domain(const char * d) {
rename_domain(d);
} else {
hash[i]->rename(d);
+ set_domain(d);
}
}
}
diff --git a/gameDetector.cpp b/gameDetector.cpp
index c6922776ea..ca68669b3e 100644
--- a/gameDetector.cpp
+++ b/gameDetector.cpp
@@ -242,8 +242,9 @@ void GameDetector::parseCommandLine(int argc, char **argv)
if (_exe_name)
goto ShowHelpAndExit;
_exe_name = s;
- scummcfg->rename_domain(s);
scummcfg->set_domain(s);
+ scummcfg->rename_domain("game-specific");
+ scummcfg->rename_domain(s);
updateconfig();
}
}