From ccf8656ebcc65eb13101646a8e20bd555d85dfc3 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Fri, 20 Feb 2004 02:32:16 +0000 Subject: [PATCH] don't warn if profile data doesn't exist --- stepmania/src/Profile.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/stepmania/src/Profile.cpp b/stepmania/src/Profile.cpp index f60a9fb396..340d154555 100644 --- a/stepmania/src/Profile.cpp +++ b/stepmania/src/Profile.cpp @@ -305,6 +305,8 @@ bool Profile::LoadAllFromDir( CString sDir ) FOR_ONCE { CString fn = sDir + EDITABLE_XML; + if( !IsAFile(fn) ) + break; int iBytes = FILEMAN->GetFileSizeInBytes( fn ); @@ -338,6 +340,8 @@ bool Profile::LoadAllFromDir( CString sDir ) FOR_ONCE { CString fn = sDir + STATS_XML; + if( !IsAFile(fn) ) + break; LOG->Trace( "Reading profile data '%s'", fn.c_str() );