optimize Stats.xml file size: don't save "none" count
This commit is contained in:
@@ -50,10 +50,12 @@ XNode* HighScore::CreateNode() const
|
|||||||
pNode->AppendChild( "ProductID", iProductID );
|
pNode->AppendChild( "ProductID", iProductID );
|
||||||
XNode* pTapNoteScores = pNode->AppendChild( "TapNoteScores" );
|
XNode* pTapNoteScores = pNode->AppendChild( "TapNoteScores" );
|
||||||
FOREACH_TapNoteScore( tns )
|
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" );
|
XNode* pHoldNoteScores = pNode->AppendChild( "HoldNoteScores" );
|
||||||
FOREACH_HoldNoteScore( hns )
|
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() );
|
pNode->AppendChild( radarValues.CreateNode() );
|
||||||
|
|
||||||
return pNode;
|
return pNode;
|
||||||
|
|||||||
Reference in New Issue
Block a user