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
This commit is contained in:
Jonathan Gray 2003-05-16 08:05:06 +00:00
parent 2c77fc14aa
commit 7c1ca29ece

View File

@ -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)