From 368c773d5c1dee77c41a625806025686e734ec3d Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Sun, 22 Feb 2004 05:18:50 +0000 Subject: [PATCH] save Steps key data in attrs --- stepmania/src/Profile.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/stepmania/src/Profile.cpp b/stepmania/src/Profile.cpp index ff9b8a5370..cf7d673276 100644 --- a/stepmania/src/Profile.cpp +++ b/stepmania/src/Profile.cpp @@ -652,8 +652,8 @@ XNode* Profile::SaveSongScoresCreateNode() const const HighScoreList &hsl = pProfile->GetStepsHighScoreList( pSteps ); - pStepsNode->AppendChild( "StepsType", GameManager::NotesTypeToString(pSteps->m_StepsType) ); - pStepsNode->AppendChild( "Difficulty", DifficultyToString(pSteps->GetDifficulty()) ); + pStepsNode->AppendAttr( "StepsType", GameManager::NotesTypeToString(pSteps->m_StepsType) ); + pStepsNode->AppendAttr( "Difficulty", DifficultyToString(pSteps->GetDifficulty()) ); if( pSteps->GetDifficulty() == DIFFICULTY_EDIT ) pStepsNode->AppendChild( "Description", pSteps->GetDescription() ); @@ -692,13 +692,13 @@ void Profile::LoadSongScoresFromNode( const XNode* pNode ) continue; CString str; - if( !(*steps)->GetChildValue("StepsType", str) ) + if( !(*steps)->GetAttrValue("StepsType", str) ) WARN_AND_CONTINUE; const StepsType st = GameManager::StringToNotesType( str ); if( st == STEPS_TYPE_INVALID ) WARN_AND_CONTINUE; - if( !(*steps)->GetChildValue("Difficulty", str) ) + if( !(*steps)->GetAttrValue("Difficulty", str) ) WARN_AND_CONTINUE; const Difficulty dc = StringToDifficulty( str ); if( dc == DIFFICULTY_INVALID )