don't output scores for hidden/locked songs
This commit is contained in:
@@ -23,6 +23,7 @@
|
||||
#include "Bookkeeper.h"
|
||||
#include "PrefsManager.h"
|
||||
#include "CryptManager.h"
|
||||
#include "UnlockSystem.h"
|
||||
#include "RageUtil.h"
|
||||
|
||||
|
||||
@@ -609,6 +610,8 @@ void PrintHighScoreListTable( RageFile &f, const HighScoreList& hsl )
|
||||
|
||||
bool PrintHighScoresForSong( RageFile &f, const Profile *pProfile, Song* pSong )
|
||||
{
|
||||
if( pSong->m_SelectionDisplay == Song::SHOW_NEVER || UNLOCKMAN->SongIsLocked(pSong) )
|
||||
return false; // skip
|
||||
int iNumTimesPlayed = pProfile->GetSongNumTimesPlayed(pSong);
|
||||
if( iNumTimesPlayed == 0 )
|
||||
return false; // skip
|
||||
@@ -754,6 +757,9 @@ void PrintGradeTable( RageFile &f, const Profile *pProfile, CString sTitle, vect
|
||||
|
||||
bool PrintInventoryForSong( RageFile &f, const Profile *pProfile, Song* pSong )
|
||||
{
|
||||
if( pSong->m_SelectionDisplay == Song::SHOW_NEVER || UNLOCKMAN->SongIsLocked(pSong) )
|
||||
return false; // skip
|
||||
|
||||
vector<Steps*> vpSteps = pSong->GetAllSteps();
|
||||
|
||||
PRINT_OPEN(f, pSong->GetFullDisplayTitle().c_str() );
|
||||
|
||||
Reference in New Issue
Block a user