[Orxonox-commit 955] r5678 - code/branches/resource3/src/core
rgrieder at orxonox.net
rgrieder at orxonox.net
Mon Aug 24 19:19:59 CEST 2009
Author: rgrieder
Date: 2009-08-24 19:19:58 +0200 (Mon, 24 Aug 2009)
New Revision: 5678
Modified:
code/branches/resource3/src/core/Core.cc
Log:
Changed initialisation order in Core.
Modified: code/branches/resource3/src/core/Core.cc
===================================================================
--- code/branches/resource3/src/core/Core.cc 2009-08-24 13:03:44 UTC (rev 5677)
+++ code/branches/resource3/src/core/Core.cc 2009-08-24 17:19:58 UTC (rev 5678)
@@ -296,6 +296,9 @@
// Required as well for the config values
this->languageInstance_.reset(new Language());
+ // creates the class hierarchy for all classes with factories
+ Factory::createClassHierarchy();
+
// Do this soon after the ConfigFileManager has been created to open up the
// possibility to configure everything below here
this->configuration_->initialise();
@@ -303,18 +306,15 @@
// Create the lua interface
this->luaBind_.reset(new LuaBind());
+ // Load OGRE excluding the renderer and the render window
+ this->graphicsManager_.reset(new GraphicsManager(false));
+
// initialise Tcl
this->tclBind_.reset(new TclBind(Core::getMediaPathString()));
this->tclThreadManager_.reset(new TclThreadManager(tclBind_->getTclInterpreter()));
// create a shell
this->shell_.reset(new Shell());
-
- // creates the class hierarchy for all classes with factories
- Factory::createClassHierarchy();
-
- // Load OGRE excluding the renderer and the render window
- this->graphicsManager_.reset(new GraphicsManager(false));
}
/**
More information about the Orxonox-commit
mailing list