[Scummvm-cvs-logs] CVS: scummvm/common main.cpp,1.23,1.24

Jonathan Gray khalek at users.sourceforge.net
Mon Mar 24 00:49:14 CET 2003


Update of /cvsroot/scummvm/scummvm/common
In directory sc8-pr-cvs1:/tmp/cvs-serv23433

Modified Files:
	main.cpp 
Log Message:
use description to set window title if one is specified

Index: main.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/common/main.cpp,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -d -r1.23 -r1.24
--- main.cpp	18 Mar 2003 06:53:14 -0000	1.23
+++ main.cpp	24 Mar 2003 08:48:41 -0000	1.24
@@ -194,7 +194,9 @@
 	}
 
 	// 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





More information about the Scummvm-git-logs mailing list