mirror of https://github.com/PCSX2/pcsx2.git
cdvdGigaherz: Fix the seek function in FileStream.
Prior to this, it would have ignored any kind of reference position.
This commit is contained in:
parent
c2e96a081f
commit
54c21b30c9
|
@ -35,7 +35,7 @@ void FileStream::seek(s64 offset)
|
|||
|
||||
void FileStream::seek(s64 offset, int ref_position)
|
||||
{
|
||||
int ret = _fseeki64(handle, offset, SEEK_SET);
|
||||
int ret = _fseeki64(handle, offset, ref_position);
|
||||
#ifdef __LINUX__
|
||||
if (ret) throw "Seek offset out of bounds.";
|
||||
#else
|
||||
|
|
Loading…
Reference in New Issue