The specs states that rresFileHeader.cdOffset is an absolute offset within the file.
However, the rresLoadCentralDirectory implementation uses an offset relative to the end of the header:
https://github.com/raysan5/rres/blob/master/src/rres.h#L877
Shouldn't it use SEEK_SET, instead of SEEK_CUR here?
The specs states that
rresFileHeader.cdOffsetis an absolute offset within the file.However, the
rresLoadCentralDirectoryimplementation uses an offset relative to the end of the header:https://github.com/raysan5/rres/blob/master/src/rres.h#L877
Shouldn't it use
SEEK_SET, instead ofSEEK_CURhere?