split HighScore to separate file

move score data from ProfileManager to Profile
store score data in XML for easier forward/backward compatibility
This commit is contained in:
Chris Danford
2004-02-10 09:42:01 +00:00
parent 0196abe99b
commit 4f439be739
25 changed files with 1727 additions and 1337 deletions
+21
View File
@@ -7,6 +7,7 @@
#include <iostream>
#include <sstream>
#include <string>
#include "RageFile.h"
static const TCHAR chXMLTagOpen = '<';
@@ -1185,3 +1186,23 @@ CString XEntity2Ref( LPCTSTR str )
{
return entityDefault.Entity2Ref( str );
}
bool _tagXMLNode::LoadFromFile( CString sFile, LPPARSEINFO pi )
{
RageFile f;
if( !f.Open(sFile, RageFile::READ) )
return false;
CString s;
f.Read( s );
this->Load( s, pi );
return true;
}
bool _tagXMLNode::SaveToFile( CString sFile, LPDISP_OPT opt )
{
RageFile f;
if( !f.Open(sFile, RageFile::WRITE) )
return false;
f.Write( this->GetXML(opt) );
return true;
}