remove construct-and-open RageFile ctor

This commit is contained in:
Glenn Maynard
2004-09-25 02:50:31 +00:00
parent ec44af425a
commit 2e6ffb73e0
6 changed files with 13 additions and 28 deletions
+3 -4
View File
@@ -20,11 +20,10 @@ bool LyricsLoader::LoadFromLRCFile(const CString& sPath, Song& out)
{
LOG->Trace( "LyricsLoader::LoadFromLRCFile(%s)", sPath.c_str() );
RageFile input( sPath );
if (!input.IsOpen())
RageFile input;
if( !input.Open(sPath) )
{
LOG->Warn("Error opening file '%s' for reading.", sPath.c_str());
LOG->Warn("Error opening file '%s' for reading: %s", sPath.c_str(), input.GetError().c_str() );
return false;
}