Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix games larger than 2GB not showing in GameSwitcher #1459

Merged
merged 1 commit into from
May 9, 2024

Conversation

tGecko
Copy link
Member

@tGecko tGecko commented Feb 29, 2024

Replace stat() with stat64() which works the same but is compatible with files larger than 2GB

The fstat64(), lstat64(), and stat64() functions are identical to the fstat(), lstat() and stat() functions except that they take a pointer to struct stat64 instead of struct stat. This permits applications to determine the size of a file that is larger than 2 gigabyes.

Closes #1451

/mnt/SDCARD/Roms/PS # du -h "Final Fantasy VIII.pbp"
2.1G    Final Fantasy VIII.pbp

GameSwitcher_000

@tGecko tGecko added the bug in onion Something isn't working label Feb 29, 2024
@tGecko tGecko self-assigned this Feb 29, 2024
@Aemiii91 Aemiii91 added this pull request to the merge queue May 9, 2024
Merged via the queue into main with commit b2eb5e6 May 9, 2024
2 checks passed
@Aemiii91 Aemiii91 deleted the fix-replace-stat-stat64 branch May 9, 2024 20:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug in onion Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

GameSwitcher never displays FF8 PBP
2 participants