From 9ab13ad4f251f26b932f3040721596353734c8d5 Mon Sep 17 00:00:00 2001 From: Chris Danford Date: Wed, 26 Jan 2005 09:13:24 +0000 Subject: [PATCH] give the root node a name so that it's valid XML --- stepmania/src/IniFile.cpp | 5 +++++ stepmania/src/IniFile.h | 2 ++ 2 files changed, 7 insertions(+) diff --git a/stepmania/src/IniFile.cpp b/stepmania/src/IniFile.cpp index bbf5c9ec11..e671b316f9 100644 --- a/stepmania/src/IniFile.cpp +++ b/stepmania/src/IniFile.cpp @@ -5,6 +5,11 @@ #include "RageFile.h" #include "Foreach.h" +IniFile::IniFile() +{ + m_sName = "IniFile"; +} + bool IniFile::ReadFile( const CString &sPath ) { m_sPath = sPath; diff --git a/stepmania/src/IniFile.h b/stepmania/src/IniFile.h index 6af164fa9d..857d4d16a8 100644 --- a/stepmania/src/IniFile.h +++ b/stepmania/src/IniFile.h @@ -16,6 +16,8 @@ private: mutable CString m_sError; public: + IniFile(); + /* Retrieve the filename of the last file loaded. */ CString GetPath() const { return m_sPath; } const CString &GetError() const { return m_sError; }