common: return real Win32 cache flags from GetCacheAccessType #673
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
GPU
GUI
help wanted
question
Shaders
Video
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/KytyPS5--KytyPS5!673
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/673/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@c0sxm0s on GitHub · 2026-09-17 13:57 UTC · original
c0sxm0s:win-file-cache-flags→main· +2 −2 · 1 files · 1 commits · merged 2026-09-20 14:47 UTCGetCacheAccessType returned the sys_file_cache_type_t enum values as CreateFileW flags: SYS_FILE_CACHE_SEQUENTIAL_SCAN (2) became FILE_ATTRIBUTE_HIDDEN and SYS_FILE_CACHE_AUTO (0) lost the normal attributes, and no FILE_FLAG_SEQUENTIAL_SCAN hint was ever applied. Return FILE_FLAG_SEQUENTIAL_SCAN / FILE_ATTRIBUTE_NORMAL instead, mirroring the POSIX fadvise handling on Linux.
@coderabbitai[bot] on GitHub · 2026-09-17 14:00 UTC · original
No actionable comments were generated in the recent review. 🎉
ℹ️ Recent review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Advanced
Run ID:
8b850be3-96e7-4e1b-9628-64187492a0cf📥 Commits
Reviewing files that changed from the base of the PR and between
c66d977c1dandb83f579d56.📒 Files selected for processing (1)
src/common/platform/sysWindowsFileIO.cppIncluded review availability: Your plan provides up to 10 included reviews per hour; 8 remain after this review.
📝 Walkthrough
Walkthrough
GetCacheAccessTypenow returnsFILE_ATTRIBUTE_NORMALfor automatic or unrecognized cache types. Explicit sequential-scan behavior remains unchanged.Suggested reviewers:
nmzikPriority: ⬇️ Low
Change: Bug fix
Merge Risk: ⚪ Minimal · up to
b83f5The Windows cache mapping uses the intended valid file flags, with no remaining merge-blocking issue identified.
🚥 Pre-merge checks | ✅ 4 | ❌ 1
❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Comment
@coderabbitai helpto get the list of available commands.