mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-16 14:50:17 +00:00
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:
parent
2c77fc14aa
commit
7c1ca29ece
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user