Add ScreenReloadSongs

This commit is contained in:
Glenn Maynard
2003-09-28 02:57:09 +00:00
parent 52261e7d72
commit b7add9b47c
3 changed files with 46 additions and 0 deletions
+29
View File
@@ -0,0 +1,29 @@
#include "global.h"
#include "ScreenReloadSongs.h"
#include "SongManager.h"
#include "UnlockSystem.h"
#include "ScreenManager.h"
/* This could be cleaned up: show progress, for example. Let's not use
* this for the initial load, since we don't want to start up the display
* until we finish loading songs; that way, people can continue to use their
* computer while songs load. */
ScreenReloadSongs::ScreenReloadSongs( CString sClassName ): Screen(sClassName)
{
m_FirstUpdate = true;
}
void ScreenReloadSongs::Update( float fDeltaTime )
{
if( !m_FirstUpdate )
return;
m_FirstUpdate = false;
SONGMAN->Reload();
UNLOCKSYS->UpdateSongs();
SCREENMAN->SetNewScreen( "ScreenTitleMenu" );
}