simplify
This commit is contained in:
@@ -273,10 +273,11 @@ RageFileObjDirect::~RageFileObjDirect()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if( !(m_iMode & RageFile::WRITE) || (m_iMode & RageFile::STREAMED) )
|
||||||
|
return;
|
||||||
|
|
||||||
/* If we failed to flush the file properly, something's amiss--don't touch the original file! */
|
/* If we failed to flush the file properly, something's amiss--don't touch the original file! */
|
||||||
if( !failed &&
|
if( !failed )
|
||||||
(m_iMode & RageFile::WRITE) &&
|
|
||||||
!(m_iMode & RageFile::STREAMED) )
|
|
||||||
{
|
{
|
||||||
/*
|
/*
|
||||||
* We now have path written to MakeTempFilename(m_sPath). Rename the temporary
|
* We now have path written to MakeTempFilename(m_sPath). Rename the temporary
|
||||||
|
|||||||
Reference in New Issue
Block a user