From ba5b881acf76cecd9c1ed75143bf685e6d8d33cd Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Thu, 9 Sep 2004 04:20:21 +0000 Subject: [PATCH] quiet warning --- 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 a172f53c82..fe366f20b6 100644 --- a/stepmania/src/Profile.cpp +++ b/stepmania/src/Profile.cpp @@ -623,7 +623,7 @@ bool Profile::LoadAllFromDir( CString sDir, bool bRequireSignature ) LOG->Trace( "Done." ); } - LOG->Trace( "Loading stats.xml" ); + LOG->Trace( "Loading %s", fn.c_str() ); XNode xml; if( !xml.LoadFromFile( fn ) ) { @@ -632,6 +632,11 @@ bool Profile::LoadAllFromDir( CString sDir, bool bRequireSignature ) } LOG->Trace( "Done." ); + /* The placeholder stats.xml file has an tag. Don't load it, but don't + * warn about it. */ + if( xml.name == "html" ) + break; + if( xml.name != "Stats" ) WARN_AND_BREAK_M( xml.name );