overhauling stats: move all stats from SongManager to ProfileManager

This commit is contained in:
Chris Danford
2003-12-07 07:09:13 +00:00
parent ed1b541a23
commit bf98d8248a
14 changed files with 778 additions and 769 deletions
+1 -7
View File
@@ -31,8 +31,6 @@
#include "ProfileManager.h"
#include "arch/arch.h"
#include "ThemeManager.h"
//#include "fstream"
#include "Bookkeeper.h"
#include "LightsManager.h"
#include "RageFile.h"
@@ -144,10 +142,6 @@ void GameState::Reset()
PROFILEMAN->UnloadProfile( (PlayerNumber)p );
}
// save stats info intermitently in case of crash
BOOKKEEPER->WriteToDisk();
SONGMAN->SaveMachineScoresToDisk();
LIGHTSMAN->SetLightMode( LIGHTMODE_ATTRACT );
}
@@ -959,7 +953,7 @@ void GameState::GetRankingFeats( PlayerNumber pn, vector<RankingFeats> &asFeatsO
for( i=0; i<NUM_RANKING_CATEGORIES; i++ )
{
vector<SongManager::CategoryData::HighScore> &vHighScores = SONGMAN->m_CategoryDatas[nt][i].vHighScores;
vector<ProfileManager::CategoryData::HighScore> &vHighScores = PROFILEMAN->m_CategoryDatas[nt][i].vHighScores;
for( unsigned j=0; j<vHighScores.size(); j++ )
{
if( vHighScores[j].sName != RANKING_TO_FILL_IN_MARKER[pn] )