From b75dd3f4be2fcef6121f2acf5f4c871e26a7e304 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Wed, 11 Feb 2004 21:12:05 +0000 Subject: [PATCH] don't warn about missing files during compatibility loads --- stepmania/src/Profile.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/stepmania/src/Profile.cpp b/stepmania/src/Profile.cpp index 3e7562d402..48709ce782 100644 --- a/stepmania/src/Profile.cpp +++ b/stepmania/src/Profile.cpp @@ -471,6 +471,8 @@ void Profile::LoadSongScoresFromDirSM390a12( CString sDir ) ASSERT( pProfile ); CString fn = sDir + SM_390A12_SONG_SCORES_DAT; + if( !IsAFile(fn) ) + return; RageFile f; if( !f.Open(fn, RageFile::READ) ) @@ -593,6 +595,8 @@ void Profile::LoadCategoryScoresFromDirSM390a12( CString sDir ) ASSERT( pProfile ); CString fn = sDir + SM_390A12_CATEGORY_SCORES_DAT; + if( !IsAFile(fn) ) + return; RageFile f; if( !f.Open(fn, RageFile::READ) ) @@ -648,6 +652,8 @@ void Profile::LoadCourseScoresFromDirSM390a12( CString sDir ) ASSERT( pProfile ); CString fn = sDir + SM_390A12_COURSE_SCORES_DAT; + if( !IsAFile(fn) ) + return; RageFile f; if( !f.Open(fn, RageFile::READ) )