only run update logic after applying command line options; allows --ExportLuaInformation to run without requiring user input

This commit is contained in:
AJ Kelly
2012-05-21 13:14:23 -05:00
parent d624ae5010
commit 96969ce4e8
+12 -12
View File
@@ -1027,6 +1027,18 @@ int main(int argc, char* argv[])
LOG->Info( "TLS is %savailable", RageThread::GetSupportsTLS()? "":"not " );
#endif
AdjustForChangedSystemCapabilities();
GAMEMAN = new GameManager;
THEME = new ThemeManager;
ANNOUNCER = new AnnouncerManager;
NOTESKIN = new NoteSkinManager;
// Switch to the last used game type, and set up the theme and announcer.
SwitchToLastPlayedGame();
CommandLineActions::Handle(pLoadingWindow);
// Aldo: Check for updates here!
if( PREFSMAN->m_bUpdateCheckEnable )
{
@@ -1064,18 +1076,6 @@ int main(int argc, char* argv[])
}
}
AdjustForChangedSystemCapabilities();
GAMEMAN = new GameManager;
THEME = new ThemeManager;
ANNOUNCER = new AnnouncerManager;
NOTESKIN = new NoteSkinManager;
// Switch to the last used game type, and set up the theme and announcer.
SwitchToLastPlayedGame();
CommandLineActions::Handle(pLoadingWindow);
if( GetCommandlineArgument("dopefish") )
GAMESTATE->m_bDopefish = true;