mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-23 16:09:47 +00:00
rzipstream_tell: Fix missing tell for non compressed files (#14313)
The tell call would always return the compressed stream position.
This commit is contained in:
parent
cb82725cc2
commit
e8668a5c71
@ -1023,7 +1023,9 @@ int64_t rzipstream_tell(rzipstream_t *stream)
|
||||
if (!stream)
|
||||
return -1;
|
||||
|
||||
return (int64_t)stream->virtual_ptr;
|
||||
if (stream->is_compressed)
|
||||
return (int64_t)stream->virtual_ptr;
|
||||
return filestream_tell(stream->file);
|
||||
}
|
||||
|
||||
/* Returns true if specified RZIP file contains
|
||||
|
Loading…
Reference in New Issue
Block a user