Revert "Missed more of these darned spots."
This reverts commit bbb57b1600.
This commit is contained in:
@@ -38,6 +38,7 @@ const RString EDIT_COURSES_SUBDIR = "EditCourses/";
|
||||
//const RString UPLOAD_SUBDIR = "Upload/";
|
||||
const RString RIVAL_SUBDIR = "Rivals/";
|
||||
|
||||
ThemeMetric<bool> SHOW_COIN_DATA( "Profile", "ShowCoinData" );
|
||||
static Preference<bool> g_bProfileDataCompress( "ProfileDataCompress", false );
|
||||
static ThemeMetric<RString> UNLOCK_AUTH_STRING( "Profile", "UnlockAuthString" );
|
||||
#define GUID_SIZE_BYTES 8
|
||||
@@ -947,6 +948,8 @@ XNode *Profile::SaveStatsXmlCreateNode() const
|
||||
xml->AppendChild( SaveCategoryScoresCreateNode() );
|
||||
xml->AppendChild( SaveScreenshotDataCreateNode() );
|
||||
xml->AppendChild( SaveCalorieDataCreateNode() );
|
||||
if( SHOW_COIN_DATA.GetValue() && IsMachine() )
|
||||
xml->AppendChild( SaveCoinDataCreateNode() );
|
||||
|
||||
return xml;
|
||||
}
|
||||
@@ -1835,6 +1838,19 @@ bool Profile::IsMachine() const
|
||||
return this == PROFILEMAN->GetMachineProfile();
|
||||
}
|
||||
|
||||
|
||||
XNode* Profile::SaveCoinDataCreateNode() const
|
||||
{
|
||||
CHECKPOINT;
|
||||
|
||||
const Profile* pProfile = this;
|
||||
ASSERT( pProfile != NULL );
|
||||
|
||||
XNode* pNode = new XNode( "CoinData" );
|
||||
|
||||
return pNode;
|
||||
}
|
||||
|
||||
void Profile::MoveBackupToDir( RString sFromDir, RString sToDir )
|
||||
{
|
||||
if( FILEMAN->IsAFile(sFromDir + STATS_XML) &&
|
||||
|
||||
Reference in New Issue
Block a user