don't output scores for hidden/locked songs

This commit is contained in:
Glenn Maynard
2004-02-22 21:10:18 +00:00
parent b002ac820b
commit 17422a5c43
+6
View File
@@ -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() );