From d3fb44c32d9cc24f64a60f35b99e012cb6d2e8ab Mon Sep 17 00:00:00 2001 From: Chris Danford Date: Sat, 28 Aug 2004 21:26:31 +0000 Subject: [PATCH] optimize Stats.xml file size: don't save "none" count --- stepmania/src/HighScore.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/stepmania/src/HighScore.cpp b/stepmania/src/HighScore.cpp index 3806eb69b7..de2aef1a30 100644 --- a/stepmania/src/HighScore.cpp +++ b/stepmania/src/HighScore.cpp @@ -50,10 +50,12 @@ XNode* HighScore::CreateNode() const pNode->AppendChild( "ProductID", iProductID ); XNode* pTapNoteScores = pNode->AppendChild( "TapNoteScores" ); FOREACH_TapNoteScore( tns ) - pTapNoteScores->AppendChild( TapNoteScoreToString(tns), iTapNoteScores[tns] ); + if( tns != TNS_NONE ) // HACK: don't save meaningless "none" count + pTapNoteScores->AppendChild( TapNoteScoreToString(tns), iTapNoteScores[tns] ); XNode* pHoldNoteScores = pNode->AppendChild( "HoldNoteScores" ); FOREACH_HoldNoteScore( hns ) - pHoldNoteScores->AppendChild( HoldNoteScoreToString(hns), iHoldNoteScores[hns] ); + if( hns != TNS_NONE ) // HACK: don't save meaningless "none" count + pHoldNoteScores->AppendChild( HoldNoteScoreToString(hns), iHoldNoteScores[hns] ); pNode->AppendChild( radarValues.CreateNode() ); return pNode;