reduce THEME->UpdateLuaGlobals() to LUA->RegisterTypes
This commit is contained in:
@@ -1087,10 +1087,7 @@ int main(int argc, char* argv[])
|
|||||||
SCREENMAN = new ScreenManager;
|
SCREENMAN = new ScreenManager;
|
||||||
|
|
||||||
// UGLY: Now that all global singletons are constructed, let them all register with Lua.
|
// UGLY: Now that all global singletons are constructed, let them all register with Lua.
|
||||||
//
|
LUA->RegisterTypes();
|
||||||
// ResetState wipes out method tables. We need to call UpdateLuaGlobals, so
|
|
||||||
// we re-run scripts that may add to them.
|
|
||||||
THEME->UpdateLuaGlobals();
|
|
||||||
|
|
||||||
StepMania::ResetGame();
|
StepMania::ResetGame();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user