feat(libSceSaveData): implement sceSaveDataGetMountedSaveDataCount #13785

Closed
rooklz wants to merge 1 commit from upstream-pr/13785 into main
rooklz commented 2026-10-31 06:13:09 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by rooklz on 2026-10-31T06:13:09Z.


What

  • Implement sceSaveDataGetMountedSaveDataCount(uint32_t* count) to report how many native save mount slots are in use.
  • Recover the (uint32_t* count) signature from SharpEmu/RPS5E; return SAVE_DATA_ERROR_NOT_INITIALIZED / SAVE_DATA_ERROR_PARAMETER for the pre-init and null-pointer cases (console ordering unverified).
  • Extend guest_savedata_mount_status checks for zero count after init and non-zero while a save stays mounted.

Tested

  • python3 tools/check_conventions.py --base upstream/main
  • python3 tools/pr_overlap.py --branch feat/savedata-mounted-count
  • Relinker-only build + ctest 529/529 (64s)
  • guest_savedata_mount_status (requires non-relinker libs build; not run on this Mac lane)

AI-assisted: yes
Host: macOS Homebrew toolchain; relinker build + module ctest; not exercised on a PS5 console.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file
  • No notes, investigation .md files or images added to the repository (attached to this PR)
  • New third-party code is built from source (n/a: none added)
  • Generic behaviour, not specific to one title
  • Depends on:
  • Fixes:
  • Unblocks:
  • GPUs tested: n/a
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5095127309 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/13785). Originally posted by [rooklz](https://github.com/rooklz) on 2026-10-31T06:13:09Z. --- ### What - Implement `sceSaveDataGetMountedSaveDataCount(uint32_t* count)` to report how many native save mount slots are in use. - Recover the `(uint32_t* count)` signature from SharpEmu/RPS5E; return `SAVE_DATA_ERROR_NOT_INITIALIZED` / `SAVE_DATA_ERROR_PARAMETER` for the pre-init and null-pointer cases (console ordering unverified). - Extend `guest_savedata_mount_status` checks for zero count after init and non-zero while a save stays mounted. ### Tested - [x] `python3 tools/check_conventions.py --base upstream/main` - [x] `python3 tools/pr_overlap.py --branch feat/savedata-mounted-count` - [x] Relinker-only build + `ctest` 529/529 (64s) - [ ] `guest_savedata_mount_status` (requires non-relinker libs build; not run on this Mac lane) AI-assisted: yes Host: macOS Homebrew toolchain; relinker build + module ctest; not exercised on a PS5 console. ### Checklist - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except technical debt - [ ] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's technical debt file <!-- pending re-verification under review --> - [x] No notes, investigation `.md` files or images added to the repository (attached to this PR) - [x] New third-party code is built from source (n/a: none added) - [x] Generic behaviour, not specific to one title - Depends on: <!-- unresolved pending maintainer merge-order review --> - Fixes: <!-- none known --> - Unblocks: <!-- see What/Debt bullet; title ID unmeasured --> - [x] GPUs tested: n/a - [x] AI-assisted: yes

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5!13785
No description provided.