From 60011239245cfc416a80ed6b53923d55ff81730b Mon Sep 17 00:00:00 2001 From: Chris Danford Date: Mon, 12 Jul 2004 02:15:29 +0000 Subject: [PATCH] fix catalog.xml has wrong names for CourseDifficulties print StepsTypesToShow in catalog.xml --- stepmania/src/CatalogXml.cpp | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/stepmania/src/CatalogXml.cpp b/stepmania/src/CatalogXml.cpp index c4b50008ad..40eaaa8667 100644 --- a/stepmania/src/CatalogXml.cpp +++ b/stepmania/src/CatalogXml.cpp @@ -13,6 +13,7 @@ #include "GameState.h" #include #include "Foreach.h" +#include "GameManager.h" void SaveCatalogXml() @@ -116,7 +117,18 @@ void SaveCatalogXml() GAMESTATE->GetCourseDifficultiesToShow( vDiffs ); for( set::const_iterator iter = vDiffs.begin(); iter != vDiffs.end(); iter++ ) { - pNode->AppendChild( "CourseDifficulty", DifficultyToString(*iter) ); + pNode->AppendChild( "CourseDifficulty", CourseDifficultyToString(*iter) ); + } + } + + { + XNode* pNode = xml.AppendChild( "StepsTypesToShow" ); + + vector vStepsTypes; + GAMEMAN->GetNotesTypesForGame( GAMESTATE->m_CurGame, vStepsTypes ); + for( vector::const_iterator iter = vStepsTypes.begin(); iter != vStepsTypes.end(); iter++ ) + { + pNode->AppendChild( "StepsType", GAMEMAN->NotesTypeToString(*iter) ); } }