Skip to content

Conversation

@cscd98
Copy link
Contributor

@cscd98 cscd98 commented Jan 21, 2026

Guidelines

  1. Rebase before opening a pull request
  2. If you are sending several unrelated fixes or features, use a branch and a separate pull request for each
  3. If possible try squashing everything in a single commit. This is particularly beneficial in the case of feature merges since it allows easy bisecting when a problem arises

Description

The current stat implementation uses a 32-bit integer pointer which means files bigger than 2 GB are not supported. There is only 6 cores that use the 32-bit stat method that I could find however changing the existing function to 64-bit would break the ABI (requiring these cores to be updated):
https://github.com/search?q=org%3Alibretro+-%3Estat%28&type=code

So we add a new 64-bit version (alternative is to update those cores)

64-bit is needed dolphin which some ISOs are > 2 GB.

Tested with Dolphin (WIP) using VFS using new stat64 function
Tested with pre-built Quake loading over SMB
Tested with pre-build Visual Boy Advance (M) over SMB which uses old stat function

I have tested local files and SMB, but not SAF.
Tested on linux and android

Related Issues

Related Pull Requests

Reviewers

@cscd98 cscd98 marked this pull request as draft January 21, 2026 13:52
@cscd98 cscd98 force-pushed the stat64 branch 3 times, most recently from bea1942 to 13f8c8d Compare January 21, 2026 14:55
@cscd98 cscd98 marked this pull request as ready for review January 22, 2026 15:47
@cscd98 cscd98 force-pushed the stat64 branch 4 times, most recently from 23cc579 to 8b4d2c9 Compare January 29, 2026 09:10
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