hide tutorial songs in all modes but PLAY_MODE_ARCADE
This commit is contained in:
@@ -26,6 +26,7 @@
|
||||
#include "ProfileManager.h"
|
||||
#include "StageStats.h"
|
||||
#include "StepsUtil.h"
|
||||
#include "Foreach.h"
|
||||
|
||||
#include "NotesLoaderSM.h"
|
||||
#include "NotesLoaderDWI.h"
|
||||
@@ -1184,6 +1185,19 @@ bool Song::IsEasy( StepsType st ) const
|
||||
return false;
|
||||
}
|
||||
|
||||
bool Song::IsTutorial() const
|
||||
{
|
||||
FOREACH_CONST( Steps*, m_vpSteps, s )
|
||||
{
|
||||
if( (*s)->m_StepsType == STEPS_TYPE_LIGHTS_CABINET )
|
||||
continue; // ignore
|
||||
if( (*s)->GetDifficulty() != DIFFICULTY_BEGINNER )
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
bool Song::HasEdits( StepsType st ) const
|
||||
{
|
||||
for( unsigned i=0; i<m_vpSteps.size(); i++ )
|
||||
|
||||
Reference in New Issue
Block a user