Skip to content

Commit

Permalink
make vfs_seek behave like fseek (#421)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jamiras authored Sep 14, 2024
1 parent c602cc3 commit d02ce8e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions bin/Cores/cores.json
Original file line number Diff line number Diff line change
Expand Up @@ -594,8 +594,7 @@
},
"quasi88_libretro":{
"name": "QUASI88",
"systems": [47],
"platforms": "none"
"systems": [47]
},
"quicknes_libretro":{
"name": "QuickNES",
Expand Down
3 changes: 1 addition & 2 deletions src/libretro/Core.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -974,8 +974,7 @@ static int64_t retro_vfs_file_seek_impl(retro_vfs_file_handle* stream, int64_t o
break;
}

_fseeki64(stream->fp, offset, whence);
return retro_vfs_file_tell_impl(stream);
return _fseeki64(stream->fp, offset, whence);
}

static int64_t retro_vfs_file_size_impl(retro_vfs_file_handle* stream)
Expand Down

0 comments on commit d02ce8e

Please sign in to comment.