This commit is contained in:
Glenn Maynard
2005-12-29 02:24:12 +00:00
parent 5303e7aab9
commit ae17e2ffe3
+1 -3
View File
@@ -281,12 +281,10 @@ bool NotesWriterSM::WriteEditFileToMachine( const Song *pSong, Steps *pSteps )
/* Flush dir cache when writing steps, so the old size isn't cached. */
FILEMAN->FlushDirCache( Dirname(sPath) );
int flags = RageFile::WRITE | RageFile::SLOW_FLUSH;
// TODO: Check to make sure that we're not clobering an existing file before opening.
RageFile f;
if( !f.Open( sPath, flags ) )
if( !f.Open(sPath, RageFile::WRITE | RageFile::SLOW_FLUSH) )
{
LOG->Warn( "Error opening song file '%s' for writing: %s", sPath.c_str(), f.GetError().c_str() );
return false;