Skip to content

vfs: Apply the Virtual File System further - #929

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

vfs: Apply the Virtual File System further#929
RobLoach wants to merge 7 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.

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.

Pushed upstream at rtissera/libchdr#166 by using the macro. Seems a bit cleaner, both approaches work.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

merging it after CI greenlights, thanks

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.

Looks like the the failure was a GitHub Actions timeout. Other builds are passing. Lemme know if you think there's anything we should clean up.

@RobLoach

RobLoach commented Jul 5, 2026

Copy link
Copy Markdown
Member Author

I'm not sure we really need large files, but it doesn't hurt either I guess

Moved back to V3 👍

Can you squash the last commit with the 3rd and force-push?

My squash jitsu isn't that solid, and worry I'd break things more. Are you able to just squash the whole thing on merge instead? I could cherry-pick the libretro-common update in a different PR if that helps.

squash-commits-using-github

@notaz

notaz commented Jul 5, 2026

Copy link
Copy Markdown
Collaborator

That would squash everything instead of those few commits.

Anyway I can take care of this myself after libchdr changes get merged in its repo.

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.

3 participants