remove RageFile::Rewind
This commit is contained in:
@@ -308,20 +308,6 @@ int RageFile::GetFileSize() const
|
|||||||
return iRet;
|
return iRet;
|
||||||
}
|
}
|
||||||
|
|
||||||
void RageFile::Rewind()
|
|
||||||
{
|
|
||||||
if( !IsOpen() )
|
|
||||||
RageException::Throw("\"%s\" is not open.", GetPath().c_str());
|
|
||||||
|
|
||||||
if( !(m_Mode&READ) )
|
|
||||||
RageException::Throw("\"%s\" is not open for reading; can't Rewind", GetPath().c_str());
|
|
||||||
|
|
||||||
m_EOF = false;
|
|
||||||
|
|
||||||
m_FilePos = 0;
|
|
||||||
m_File->Rewind();
|
|
||||||
}
|
|
||||||
|
|
||||||
int RageFile::Read( CString &buffer, int bytes )
|
int RageFile::Read( CString &buffer, int bytes )
|
||||||
{
|
{
|
||||||
buffer.erase( buffer.begin(), buffer.end() );
|
buffer.erase( buffer.begin(), buffer.end() );
|
||||||
|
|||||||
@@ -51,7 +51,6 @@ public:
|
|||||||
int Tell() const { return m_FilePos; }
|
int Tell() const { return m_FilePos; }
|
||||||
int Seek( int offset );
|
int Seek( int offset );
|
||||||
int GetFileSize() const;
|
int GetFileSize() const;
|
||||||
void Rewind();
|
|
||||||
|
|
||||||
/* Raw I/O: */
|
/* Raw I/O: */
|
||||||
int Read( void *buffer, size_t bytes );
|
int Read( void *buffer, size_t bytes );
|
||||||
|
|||||||
Reference in New Issue
Block a user