mirror of
https://github.com/libretro/RetroArch
synced 2025-01-30 12:32:52 +00:00
Rewrite filestream_seek call
This commit is contained in:
parent
2c0c6ae65e
commit
41b1329bc1
@ -302,7 +302,7 @@ void *retro_vfs_file_open_impl(const char *path, unsigned mode, unsigned hints)
|
||||
if (stream->mapsize == (uint64_t)-1)
|
||||
goto error;
|
||||
|
||||
filestream_rewind(stream);
|
||||
retro_vfs_file_seek_internal(stream, 0, SEEK_SET);
|
||||
|
||||
stream->mapped = (uint8_t*)mmap((void*)0,
|
||||
stream->mapsize, PROT_READ, MAP_SHARED, stream->fd, 0);
|
||||
|
Loading…
x
Reference in New Issue
Block a user