no, reomve Rewind()
This commit is contained in:
@@ -277,13 +277,6 @@ int RageFile::Seek( int offset )
|
|||||||
|
|
||||||
ResetBuf();
|
ResetBuf();
|
||||||
|
|
||||||
if( offset == 0 )
|
|
||||||
{
|
|
||||||
m_File->Rewind();
|
|
||||||
m_FilePos = 0;
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
int pos = m_File->Seek( offset );
|
int pos = m_File->Seek( offset );
|
||||||
if( pos == -1 )
|
if( pos == -1 )
|
||||||
return -1;
|
return -1;
|
||||||
|
|||||||
@@ -53,7 +53,6 @@ public:
|
|||||||
virtual int Read(void *buffer, size_t bytes) = 0;
|
virtual int Read(void *buffer, size_t bytes) = 0;
|
||||||
virtual int Write(const void *buffer, size_t bytes) = 0;
|
virtual int Write(const void *buffer, size_t bytes) = 0;
|
||||||
virtual int Flush() { return 0; }
|
virtual int Flush() { return 0; }
|
||||||
virtual void Rewind() { }
|
|
||||||
virtual RageFileObj *Copy( RageFile &p ) const = 0;
|
virtual RageFileObj *Copy( RageFile &p ) const = 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user