[loading window] Theme loading should also list itself in the loading window.

This commit is contained in:
Henrik Andersson
2011-06-04 16:09:47 +02:00
parent 9956525d46
commit 813c2d8f09
4 changed files with 8 additions and 1 deletions
+1 -1
View File
@@ -1011,7 +1011,7 @@ int main(int argc, char* argv[])
GAMESTATE = new GameState;
// This requires PREFSMAN, for PREFSMAN->m_bShowLoadingWindow.
LoadingWindow *pLoadingWindow = LoadingWindow::Create();
pLoadingWindow = LoadingWindow::Create();
if(pLoadingWindow == NULL)
RageException::Throw("%s", COULDNT_OPEN_LOADING_WINDOW.GetValue().c_str());
+3
View File
@@ -8,6 +8,7 @@
#include "RageTimer.h"
#include "FontCharAliases.h"
#include "arch/ArchHooks/ArchHooks.h"
#include "arch/LoadingWindow/LoadingWindow.h"
#include "arch/Dialog/Dialog.h"
#include "RageFile.h"
#if !defined(SMPACKAGE)
@@ -397,6 +398,8 @@ void ThemeManager::SwitchThemeAndLanguage( const RString &sThemeName_, const RSt
if( bNothingChanging && !bForceThemeReload )
return;
if(pLoadingWindow) pLoadingWindow->SetText("Loading theme & language...");
m_bPseudoLocalize = bPseudoLocalize;
// Load theme metrics. If only the language is changing, this is all
+2
View File
@@ -53,6 +53,8 @@ LoadingWindow *LoadingWindow::Create()
return ret;
}
LoadingWindow *pLoadingWindow;
/*
* (c) 2002-2005 Glenn Maynard
* All rights reserved.
+2
View File
@@ -21,6 +21,8 @@ protected:
int m_totalWork;
};
extern LoadingWindow *pLoadingWindow;
#endif
/**