LUA = new LuaManager;
GAMESTATE = new GameState;
- /* This requires PREFSMAN, for PREFSMAN->m_bShowLoadingWindow. */
+ /* This requires PREFSMAN, for g_bShowLoadingWindow. */
LoadingWindow *loading_window = LoadingWindow::Create();
- if( loading_window == NULL )
- RageException::Throw( "Couldn't open any loading windows." );
- srand( time(NULL) ); // seed number generator
-
+ srand( time(NULL) ); // seed number generator
+
/* Do this early, so we have debugging output if anything else fails. LOG and
* Dialog must be set up first. It shouldn't take long, but it might take a
* little time; do this after the LoadingWindow is shown, since we don't want
#include "global.h"\r
#include "LoadingWindow.h"\r
+#include "LoadingWindow_Null.h" // fallback\r
#include "Preference.h"\r
#include "RageLog.h"\r
#include "arch/arch_default.h"\r
if( !g_bShowLoadingWindow )\r
return new LoadingWindow_Null;\r
\r
-#if defined(UNIX) && !defined(HAVE_GTK)\r
- return new LoadingWindow_Null;\r
-#endif\r
-\r
- /* don't load Null by default. */\r
const CString drivers = "xbox,win32,cocoa,gtk,sdl";\r
vector<CString> DriversToTry;\r
split( drivers, ",", DriversToTry, true );\r
}\r
\r
if( ret )\r
+ {\r
LOG->Info( "Loading window: %s", Driver.c_str() );\r
+ return ret;\r
+ }\r
\r
- return ret;\r
+ LOG->Warn( "Couldn't open any loading windows." );\r
+ return new LoadingWindow_Null;\r
}\r
\r
/*\r