From 1de96421e369c9a4765fd107f1d15a9f0a5947a7 Mon Sep 17 00:00:00 2001 From: Chris Danford Date: Thu, 20 May 2004 03:51:07 +0000 Subject: [PATCH] save DisplayName in Profile --- stepmania/src/Profile.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/stepmania/src/Profile.cpp b/stepmania/src/Profile.cpp index ec9fe35fa1..a842421fe0 100644 --- a/stepmania/src/Profile.cpp +++ b/stepmania/src/Profile.cpp @@ -770,7 +770,12 @@ XNode* Profile::SaveGeneralDataCreateNode() const { XNode* pGeneralDataNode = new XNode; pGeneralDataNode->name = "GeneralData"; - + + // TRICKY: DisplayName is only written and is not read on load. The reason + // for this is so that other apps that read this XML can get the player + // name without having to read Editable.ini. + pGeneralDataNode->AppendChild( "DisplayName", GetDisplayName() ); + pGeneralDataNode->AppendChild( "Guid", m_sGuid ); pGeneralDataNode->AppendChild( "UsingProfileDefaultModifiers", m_bUsingProfileDefaultModifiers ); pGeneralDataNode->AppendChild( "DefaultModifiers", m_sDefaultModifiers );