only run update logic after applying command line options; allows --ExportLuaInformation to run without requiring user input
This commit is contained in:
+12
-12
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user