diff options
author | Max Horn | 2003-10-12 18:40:12 +0000 |
---|---|---|
committer | Max Horn | 2003-10-12 18:40:12 +0000 |
commit | 36fd7ec44574a4b1712fff1eb0ec43a76aab8f1c (patch) | |
tree | c7d0ddca69492d7db124a6c9ea4728e59faba071 /base/main.cpp | |
parent | c3f4bbf34fe5192fe5bccd87c4319a42e1109422 (diff) | |
download | scummvm-rg350-36fd7ec44574a4b1712fff1eb0ec43a76aab8f1c.tar.gz scummvm-rg350-36fd7ec44574a4b1712fff1eb0ec43a76aab8f1c.tar.bz2 scummvm-rg350-36fd7ec44574a4b1712fff1eb0ec43a76aab8f1c.zip |
some renaming for more consistent terminology (although we might want to reevaluate this): 'target' is what is in your config file; 'game' is what a frontend provide. E.g. the scumm frontend provides the game 'monkeyvga', and my config file has target 'monkeyvga-ger' configured to use that game
svn-id: r10766
Diffstat (limited to 'base/main.cpp')
-rw-r--r-- | base/main.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/base/main.cpp b/base/main.cpp index 2ca7a9966d..6b90e531f7 100644 --- a/base/main.cpp +++ b/base/main.cpp @@ -259,16 +259,18 @@ int main(int argc, char *argv[]) { g_gui = new NewGui(system); // Unless a game was specified, show the launcher dialog - if (detector._gameFileName.isEmpty()) + if (detector._targetName.isEmpty()) launcherDialog(detector, system); // Verify the given game name is a valid supported game if (detector.detectMain()) { // Set the window caption to the game name - prop.caption = ConfMan.get("description", detector._gameFileName).c_str(); + prop.caption = ConfMan.get("description", detector._targetName).c_str(); if (prop.caption == NULL) - prop.caption = detector._gameFileName.c_str(); + prop.caption = detector._game.description; + if (prop.caption == NULL) + prop.caption = detector._targetName.c_str(); if (prop.caption != NULL) system->property(OSystem::PROP_SET_WINDOW_CAPTION, &prop); @@ -277,7 +279,7 @@ int main(int argc, char *argv[]) { // should combine both checks into one. // See if the game should default to 1x scaler - if (!ConfMan.hasKey("gfx_mode", detector._gameFileName) && + if (!ConfMan.hasKey("gfx_mode", detector._targetName) && (detector._game.features & GF_DEFAULT_TO_1X_SCALER)) { prop.gfx_mode = GFX_NORMAL; system->property(OSystem::PROP_SET_GFX_MODE, &prop); |