return a mask, like SongIsLocked
This commit is contained in:
@@ -106,16 +106,19 @@ RString UnlockManager::FindEntryID( const RString &sName ) const
|
|||||||
return pEntry->m_sEntryID;
|
return pEntry->m_sEntryID;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool UnlockManager::CourseIsLocked( const Course *course ) const
|
int UnlockManager::CourseIsLocked( const Course *pCourse ) const
|
||||||
{
|
{
|
||||||
if( !PREFSMAN->m_bUseUnlockSystem )
|
int iRet = 0;
|
||||||
return false;
|
if( PREFSMAN->m_bUseUnlockSystem )
|
||||||
|
{
|
||||||
|
const UnlockEntry *p = FindCourse( pCourse );
|
||||||
|
if( p == NULL )
|
||||||
|
return false;
|
||||||
|
if( p->IsLocked() )
|
||||||
|
iRet |= LOCKED_LOCK;
|
||||||
|
}
|
||||||
|
|
||||||
const UnlockEntry *p = FindCourse( course );
|
return iRet;
|
||||||
if( p == NULL )
|
|
||||||
return false;
|
|
||||||
|
|
||||||
return p->IsLocked();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int UnlockManager::SongIsLocked( const Song *pSong ) const
|
int UnlockManager::SongIsLocked( const Song *pSong ) const
|
||||||
|
|||||||
@@ -113,7 +113,7 @@ public:
|
|||||||
int SongIsLocked( const Song *pSong ) const;
|
int SongIsLocked( const Song *pSong ) const;
|
||||||
bool SongIsRouletteOnly( const Song *song ) const;
|
bool SongIsRouletteOnly( const Song *song ) const;
|
||||||
bool StepsIsLocked( const Song *pSong, const Steps *pSteps ) const;
|
bool StepsIsLocked( const Song *pSong, const Steps *pSteps ) const;
|
||||||
bool CourseIsLocked( const Course *course ) const;
|
int CourseIsLocked( const Course *course ) const;
|
||||||
bool ModifierIsLocked( const RString &sOneMod ) const;
|
bool ModifierIsLocked( const RString &sOneMod ) const;
|
||||||
|
|
||||||
// Gets number of unlocks for title screen
|
// Gets number of unlocks for title screen
|
||||||
|
|||||||
Reference in New Issue
Block a user