Skip to content

vfs: Apply the Virtual File System further#929

Open
RobLoach wants to merge 6 commits into
libretro:masterfrom
RobLoach:ppf-vfs
Open

vfs: Apply the Virtual File System further#929
RobLoach wants to merge 6 commits into
libretro:masterfrom
RobLoach:ppf-vfs

Conversation

@RobLoach

@RobLoach RobLoach commented Jun 25, 2026

Copy link
Copy Markdown
Member

This applies the Virtual File System further, updating to VFS4 to support for larger file sizes with seek_64. The diff is large because of the libretro-common update for VFS4 support.

@RobLoach RobLoach changed the title vfs: Add the include to ppf.c vfs: Apply the Virtual File System further Jun 25, 2026
@notaz

notaz commented Jun 25, 2026

Copy link
Copy Markdown
Collaborator

I'm not sure we really need large files, but it doesn't hurt either I guess. Can you squash the last commit with the 3rd and force-push?

* returns the new file position. We adapt the return value to the
* fseek semantics (0 on success, -1 on error), so callers that test the
* result against 0 work under both stdio and VFS. */
return core_stdio_fseek_impl((FILE*)file->argp, offset, whence) < 0 ? -1 : 0;

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You need to send this upstream to https://github.com/rtissera/libchdr and then I'll update the whole libchdr. Otherwise this change will be lost on next libchdr update.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good call. Was not quite sure where to push the upstream changes.

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.

2 participants