fix incorrect warnings
don't warn on "file not found"
This commit is contained in:
@@ -453,13 +453,15 @@ void Profile::LoadSongScoresFromDir( CString sDir )
|
|||||||
CHECKPOINT;
|
CHECKPOINT;
|
||||||
|
|
||||||
CString fn = sDir + SONG_SCORES_XML;
|
CString fn = sDir + SONG_SCORES_XML;
|
||||||
|
if( !IsAFile(fn) )
|
||||||
|
return;
|
||||||
|
|
||||||
CRYPT_VERIFY_FILE;
|
CRYPT_VERIFY_FILE;
|
||||||
|
|
||||||
XNode xml;
|
XNode xml;
|
||||||
if( !xml.LoadFromFile( fn ) )
|
if( !xml.LoadFromFile( fn ) )
|
||||||
{
|
{
|
||||||
LOG->Warn( "Couldn't open file \"%s\" for writing.", fn.c_str() );
|
LOG->Warn( "Couldn't open file \"%s\" for reading.", fn.c_str() );
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -845,13 +847,15 @@ void Profile::LoadCourseScoresFromDir( CString sDir )
|
|||||||
CHECKPOINT;
|
CHECKPOINT;
|
||||||
|
|
||||||
CString fn = sDir + COURSE_SCORES_XML;
|
CString fn = sDir + COURSE_SCORES_XML;
|
||||||
|
if( !IsAFile(fn) )
|
||||||
|
return;
|
||||||
|
|
||||||
CRYPT_VERIFY_FILE;
|
CRYPT_VERIFY_FILE;
|
||||||
|
|
||||||
XNode xml;
|
XNode xml;
|
||||||
if( !xml.LoadFromFile( fn ) )
|
if( !xml.LoadFromFile( fn ) )
|
||||||
{
|
{
|
||||||
LOG->Warn( "Couldn't open file \"%s\" for writing.", fn.c_str() );
|
LOG->Warn( "Couldn't open file \"%s\" for reading.", fn.c_str() );
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -934,13 +938,15 @@ void Profile::LoadCategoryScoresFromDir( CString sDir )
|
|||||||
CHECKPOINT;
|
CHECKPOINT;
|
||||||
|
|
||||||
CString fn = sDir + CATEGORY_SCORES_XML;
|
CString fn = sDir + CATEGORY_SCORES_XML;
|
||||||
|
if( !IsAFile(fn) )
|
||||||
|
return;
|
||||||
|
|
||||||
CRYPT_VERIFY_FILE;
|
CRYPT_VERIFY_FILE;
|
||||||
|
|
||||||
XNode xml;
|
XNode xml;
|
||||||
if( !xml.LoadFromFile( fn ) )
|
if( !xml.LoadFromFile( fn ) )
|
||||||
{
|
{
|
||||||
LOG->Warn( "Couldn't open file \"%s\" for writing.", fn.c_str() );
|
LOG->Warn( "Couldn't open file \"%s\" for reading.", fn.c_str() );
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1027,13 +1033,15 @@ void Profile::LoadScreenshotDataFromDir( CString sDir )
|
|||||||
CHECKPOINT;
|
CHECKPOINT;
|
||||||
|
|
||||||
CString fn = sDir + SCREENSHOT_DATA_XML;
|
CString fn = sDir + SCREENSHOT_DATA_XML;
|
||||||
|
if( !IsAFile(fn) )
|
||||||
|
return;
|
||||||
|
|
||||||
CRYPT_VERIFY_FILE;
|
CRYPT_VERIFY_FILE;
|
||||||
|
|
||||||
XNode xml;
|
XNode xml;
|
||||||
if( !xml.LoadFromFile( fn ) )
|
if( !xml.LoadFromFile( fn ) )
|
||||||
{
|
{
|
||||||
LOG->Warn( "Couldn't open file \"%s\" for writing.", fn.c_str() );
|
LOG->Warn( "Couldn't open file \"%s\" for reading.", fn.c_str() );
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user