aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Gray2003-03-24 08:48:41 +0000
committerJonathan Gray2003-03-24 08:48:41 +0000
commiteb31490e3933a3b5e3a02dc836777403ff13e69f (patch)
tree7b8d85637cc1fe2653b6488af75871b38154ac6b
parentd89b2be0fc5e0307ae5aa61fb7a24d8f10a3cbd8 (diff)
downloadscummvm-rg350-eb31490e3933a3b5e3a02dc836777403ff13e69f.tar.gz
scummvm-rg350-eb31490e3933a3b5e3a02dc836777403ff13e69f.tar.bz2
scummvm-rg350-eb31490e3933a3b5e3a02dc836777403ff13e69f.zip
use description to set window title if one is specified
svn-id: r6853
-rw-r--r--common/main.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/common/main.cpp b/common/main.cpp
index fdb8f9463f..be2882271e 100644
--- a/common/main.cpp
+++ b/common/main.cpp
@@ -194,7 +194,9 @@ int main(int argc, char *argv[]) {
}
// Set the window caption to the game name
- prop.caption = detector.getGameName().c_str();
+ prop.caption = g_config->get("description", detector._gameFileName);
+ if (prop.caption == NULL)
+ prop.caption = detector.getGameName().c_str();
system->property(OSystem::PROP_SET_WINDOW_CAPTION, &prop);
// See if the game should default to 1x scaler