aboutsummaryrefslogtreecommitdiff
path: root/common/gameDetector.cpp
diff options
context:
space:
mode:
authorJonathan Gray2003-05-16 08:05:06 +0000
committerJonathan Gray2003-05-16 08:05:06 +0000
commit7c1ca29ece5597c363325046b1c02371741a54c6 (patch)
tree08436df4efb277e3a28d2892b7b86aa42c6eebc5 /common/gameDetector.cpp
parent2c77fc14aa1d3b8233c038f8bd86846de9f9141d (diff)
downloadscummvm-rg350-7c1ca29ece5597c363325046b1c02371741a54c6.tar.gz
scummvm-rg350-7c1ca29ece5597c363325046b1c02371741a54c6.tar.bz2
scummvm-rg350-7c1ca29ece5597c363325046b1c02371741a54c6.zip
add config option basename to override base file name for games of the form foo.xxx to basename.xxx, useful when used together with gameid to test games not yet added to version list
svn-id: r7566
Diffstat (limited to 'common/gameDetector.cpp')
-rw-r--r--common/gameDetector.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/common/gameDetector.cpp b/common/gameDetector.cpp
index a79bfa17dc..a1905c61a2 100644
--- a/common/gameDetector.cpp
+++ b/common/gameDetector.cpp
@@ -554,7 +554,7 @@ bool GameDetector::parseMusicDriver(const char *s) {
bool GameDetector::detectGame() {
const VersionSettings *gnl = version_settings;
- char *realGame;
+ char *realGame, *basename;
_gameId = 0;
_gameText.clear();
@@ -565,7 +565,10 @@ bool GameDetector::detectGame() {
do {
if (!scumm_stricmp(realGame, gnl->filename)) {
_gameId = gnl->id;
- _gameRealName = gnl->filename;
+ if ((basename = (char *)g_config->get("basename")))
+ _gameRealName = basename;
+ else
+ _gameRealName = gnl->filename;
_features = gnl->features;
_gameText = gnl->gamename;
if (gnl->major != 99)