[loading window] Theme loading should also list itself in the loading window.
This commit is contained in:
+1
-1
@@ -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());
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -53,6 +53,8 @@ LoadingWindow *LoadingWindow::Create()
|
||||
return ret;
|
||||
}
|
||||
|
||||
LoadingWindow *pLoadingWindow;
|
||||
|
||||
/*
|
||||
* (c) 2002-2005 Glenn Maynard
|
||||
* All rights reserved.
|
||||
|
||||
@@ -21,6 +21,8 @@ protected:
|
||||
int m_totalWork;
|
||||
};
|
||||
|
||||
extern LoadingWindow *pLoadingWindow;
|
||||
|
||||
#endif
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user