From e1128abe6472f4087e6c9585e5c1e8c97e81ff0d Mon Sep 17 00:00:00 2001 From: Max Horn Date: Sun, 5 Oct 2003 13:10:28 +0000 Subject: create the timer object a bit earlier svn-id: r10603 --- base/main.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'base/main.cpp') diff --git a/base/main.cpp b/base/main.cpp index b47b9e4b17..94e565ed5f 100644 --- a/base/main.cpp +++ b/base/main.cpp @@ -278,6 +278,9 @@ int main(int argc, char *argv[]) { // 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 @@ int main(int argc, char *argv[]) { 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 @@ int main(int argc, char *argv[]) { 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); -- cgit v1.2.3