move RegisterTypes
This commit is contained in:
@@ -1092,10 +1092,6 @@ int main(int argc, char* argv[])
|
|||||||
MESSAGEMAN = new MessageManager;
|
MESSAGEMAN = new MessageManager;
|
||||||
STATSMAN = new StatsManager;
|
STATSMAN = new StatsManager;
|
||||||
|
|
||||||
// UGLY: Now that all global singletons are constructed so that they, let them
|
|
||||||
// all register with Lua.
|
|
||||||
LUA->RegisterTypes();
|
|
||||||
|
|
||||||
SAFE_DELETE( loading_window ); // destroy this before init'ing Display
|
SAFE_DELETE( loading_window ); // destroy this before init'ing Display
|
||||||
|
|
||||||
DISPLAY = CreateDisplay();
|
DISPLAY = CreateDisplay();
|
||||||
@@ -1136,6 +1132,10 @@ int main(int argc, char* argv[])
|
|||||||
FONT = new FontManager;
|
FONT = new FontManager;
|
||||||
SCREENMAN = new ScreenManager;
|
SCREENMAN = new ScreenManager;
|
||||||
|
|
||||||
|
// UGLY: Now that all global singletons are constructed so that they, let them
|
||||||
|
// all register with Lua.
|
||||||
|
LUA->RegisterTypes();
|
||||||
|
|
||||||
/* People may want to do something else while songs are loading, so do
|
/* People may want to do something else while songs are loading, so do
|
||||||
* this after loading songs. */
|
* this after loading songs. */
|
||||||
if( ChangeAppPri() )
|
if( ChangeAppPri() )
|
||||||
|
|||||||
Reference in New Issue
Block a user