mirror of
https://github.com/isledecomp/isle.git
synced 2026-01-24 00:31:16 +00:00
correct MXIOINFO::Seek() return type
This commit is contained in:
parent
7f1319f4b8
commit
f202c72a01
@ -124,9 +124,9 @@ MxLong MXIOINFO::Read(void *p_buf, MxLong p_len)
|
||||
}
|
||||
|
||||
// OFFSET: LEGO1 0x100cca00
|
||||
MxLong MXIOINFO::Seek(MxLong p_offset, int p_origin)
|
||||
MxResult MXIOINFO::Seek(MxLong p_offset, int p_origin)
|
||||
{
|
||||
MxLong result = FAILURE;
|
||||
MxResult result = FAILURE;
|
||||
|
||||
// If buffered I/O
|
||||
if (m_info.pchBuffer) {
|
||||
@ -142,7 +142,7 @@ MxLong MXIOINFO::Seek(MxLong p_offset, int p_origin)
|
||||
}
|
||||
} else if (p_origin == SEEK_END) {
|
||||
// not possible with buffered I/O
|
||||
return -1;
|
||||
return FAILURE;
|
||||
}
|
||||
|
||||
// else p_origin == SEEK_SET.
|
||||
|
||||
@ -15,7 +15,7 @@ class MXIOINFO
|
||||
MxU16 Open(const char *, MxULong);
|
||||
MxU16 Close(MxLong);
|
||||
MxLong Read(void *, MxLong);
|
||||
MxLong Seek(MxLong, int);
|
||||
MxResult Seek(MxLong, int);
|
||||
MxU16 SetBuffer(char *, MxLong, MxLong);
|
||||
MxU16 Flush(MxU16);
|
||||
MxU16 Advance(MxU16);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user