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
+8
View File
@@ -30,6 +30,8 @@
#include "UnlockSystem.h"
#include "ProductInfo.h"
#include "LightsManager.h"
#include "Bookkeeper.h"
#include "ProfileManager.h"
#define LOGO_ON_COMMAND THEME->GetMetric("ScreenTitleMenu","LogoOnCommand")
@@ -71,6 +73,12 @@ ScreenTitleMenu::ScreenTitleMenu( CString sClassName ) : ScreenSelect( sClassNam
return;
}
// HACK: save stats intermitently in case of crash
BOOKKEEPER->WriteToDisk();
PROFILEMAN->SaveMachineScoresToDisk();
/* XXX We really need two common calls: 1, something run when exiting from gameplay
* (to do this reset), and 2, something run when entering gameplay, to apply default
* options. Having special cases in attract screens and the title menu to reset