move RegisterTypes
This commit is contained in:
@@ -1092,10 +1092,6 @@ int main(int argc, char* argv[])
|
||||
MESSAGEMAN = new MessageManager;
|
||||
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
|
||||
|
||||
DISPLAY = CreateDisplay();
|
||||
@@ -1136,6 +1132,10 @@ int main(int argc, char* argv[])
|
||||
FONT = new FontManager;
|
||||
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
|
||||
* this after loading songs. */
|
||||
if( ChangeAppPri() )
|
||||
|
||||
Reference in New Issue
Block a user