Skip to content

Regularize the various VFS seek implementations (attempt 2)#19151

Open
white-axe wants to merge 4 commits into
libretro:masterfrom
white-axe:vfs-seek
Open

Regularize the various VFS seek implementations (attempt 2)#19151
white-axe wants to merge 4 commits into
libretro:masterfrom
white-axe:vfs-seek

Conversation

@white-axe

Copy link
Copy Markdown
Contributor

In #18607 I attempted to address an inconsistency across different implementations of the libretro VFS seek function in libretro-common, but that was reverted due to causing issue #18619.

I have found out the cause of #18619: the function retro_vfs_file_open_impl() assumes that retro_vfs_file_seek_internal() returns the new position that the file was seeked to under some circumstances, but #18607 changed the behaviour of retro_vfs_file_seek_internal() in such a way that it breaks the logic of retro_vfs_file_open_impl(). I have fixed this in the third commit in this pull request.

I also found another inconsistency in the seek implementation which I have fixed in the second commit in this pull request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant