[Scummvm-cvs-logs] CVS: scummvm/base main.cpp,1.9,1.10
Max Horn
fingolfin at users.sourceforge.net
Sun Oct 5 06:11:05 CEST 2003
Update of /cvsroot/scummvm/scummvm/base
In directory sc8-pr-cvs1:/tmp/cvs-serv32593
Modified Files:
main.cpp
Log Message:
create the timer object a bit earlier
Index: main.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/base/main.cpp,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- main.cpp 28 Sep 2003 21:08:48 -0000 1.9
+++ main.cpp 5 Oct 2003 13:10:28 -0000 1.10
@@ -278,6 +278,9 @@
// Create the system object
OSystem *system = detector.createSystem();
g_system = system;
+
+ // Create the timer services
+ g_timer = new Timer(system);
// Set initial window caption
prop.caption = "ScummVM";
@@ -290,8 +293,9 @@
if (detector._gameFileName.isEmpty())
launcherDialog(detector, system);
- // Verify the given game name
+ // Verify the given game name is a valid supported game
if (detector.detectMain()) {
+
// Set the window caption to the game name
prop.caption = g_config->get("description", detector._gameFileName);
if (prop.caption == NULL)
@@ -304,9 +308,6 @@
prop.gfx_mode = GFX_NORMAL;
system->property(OSystem::PROP_SET_GFX_MODE, &prop);
}
-
- // Create the timer services
- g_timer = new Timer(system);
// Create the game engine
Engine *engine = detector.createEngine(system);
More information about the Scummvm-git-logs
mailing list