Files
itgmania212121/stepmania/src/ScreenReloadSongs.cpp
T
2003-09-28 02:57:09 +00:00

30 lines
703 B
C++

#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" );
}