docs(libSceSaveData.native): record what firmware 13.42 does in sceSaveDataGetProgress #15097

Merged
BunnyFl merged 4 commits from upstream-pr/15097 into main 2026-11-06 23:28:40 +00:00
BunnyFl commented 2026-11-02 15:50:57 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by BunnyFl on 2026-11-02T15:50:57Z.


What

The sceSaveDataGetProgress entry in docs/dev/debt/libSceSaveData.native.md, merged with #15077, says three things that firmware 13.42 settles otherwise:

  • it takes the float* parameter from the OpenOrbis headers and shadPS4 and says "the PS5 module may differ";
  • it plans to take the value from sceSaveDataBackup's own copy, as shadPS4 does;
  • it waits on #15042 for that mapping.

The entry now says what firmware 13.42's libSceSaveData.sprx does. The export stays NotImplemented_nid_no_patch; no code changes.

Source: firmware 13.42 libSceSaveData.sprx (sha256 1d214285f188f1c0821a611a08345833dd379cee547d5834e64228cde906a567), export ANmSWUiyyGQ at 0x39af0. Read from disassembly only, not measured on a console:

39b00: ctx = [0x64040] ; test ctx ; je 39b3b    ; 39b3b: 0x809f0001, no library context
39b05: (ctx->state & ~1) != 2 -> 0x809f0000      ; state gate before the pointer is looked at
39b1b: call 0x1d6c0(ctx, progress)
  1d6dc: ctx[0x38] < 0 -> return it
  1d6eb: ctx[0x10] == NULL -> 0x809f8002
  1d6f0: progress == NULL -> 0x809f8004
  1d74e: call 0x1a0a0(conn, request 5, ..., 0x80-byte reply)   ; save-data service request
  1d757: vmovss xmm0, [reply] ; vmovss [progress], xmm0           ; float stored through the pointer
39b28: on a negative result, tail-calls 0x1d480(ctx, 5)

So the value comes from the save-data service, and mapping it to the library's backup copy would be a host model rather than the console's behaviour. I left out 0x809F8002 and the 0x1d480 error path from the entry, since neither is traced to a caller-visible meaning.

  • Docs only; one line in docs/dev/debt/libSceSaveData.native.md (760 characters).

Tested

  • Documentation only; no build.
  • py -3 tools/check_conventions.py --base upstream/main: all checks pass.
  • py -3 tools/pr_overlap.py --branch docs/savedata-getprogress-firmware: it lists #12625, #12748, #13551, #14150, #14212 and #14908 as sharing the debt file without a comparison. I read each diff: none implements or rewrites this entry. #12625 adds an older copy of it, and the others only carry it as context.

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
  • Depends on: none
  • Fixes: none
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes

🤖 Generated with Claude Code

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5123177385 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/15097). Originally posted by [BunnyFl](https://github.com/BunnyFl) on 2026-11-02T15:50:57Z. --- ### What The `sceSaveDataGetProgress` entry in `docs/dev/debt/libSceSaveData.native.md`, merged with #15077, says three things that firmware 13.42 settles otherwise: - it takes the `float*` parameter from the OpenOrbis headers and shadPS4 and says "the PS5 module may differ"; - it plans to take the value from `sceSaveDataBackup`'s own copy, as shadPS4 does; - it waits on #15042 for that mapping. The entry now says what firmware 13.42's `libSceSaveData.sprx` does. The export stays `NotImplemented_nid_no_patch`; no code changes. Source: firmware 13.42 `libSceSaveData.sprx` (sha256 `1d214285f188f1c0821a611a08345833dd379cee547d5834e64228cde906a567`), export `ANmSWUiyyGQ` at `0x39af0`. Read from disassembly only, not measured on a console: ``` 39b00: ctx = [0x64040] ; test ctx ; je 39b3b ; 39b3b: 0x809f0001, no library context 39b05: (ctx->state & ~1) != 2 -> 0x809f0000 ; state gate before the pointer is looked at 39b1b: call 0x1d6c0(ctx, progress) 1d6dc: ctx[0x38] < 0 -> return it 1d6eb: ctx[0x10] == NULL -> 0x809f8002 1d6f0: progress == NULL -> 0x809f8004 1d74e: call 0x1a0a0(conn, request 5, ..., 0x80-byte reply) ; save-data service request 1d757: vmovss xmm0, [reply] ; vmovss [progress], xmm0 ; float stored through the pointer 39b28: on a negative result, tail-calls 0x1d480(ctx, 5) ``` So the value comes from the save-data service, and mapping it to the library's backup copy would be a host model rather than the console's behaviour. I left out `0x809F8002` and the `0x1d480` error path from the entry, since neither is traced to a caller-visible meaning. - Docs only; one line in `docs/dev/debt/libSceSaveData.native.md` (760 characters). ### Tested - Documentation only; no build. - `py -3 tools/check_conventions.py --base upstream/main`: all checks pass. - `py -3 tools/pr_overlap.py --branch docs/savedata-getprogress-firmware`: it lists #12625, #12748, #13551, #14150, #14212 and #14908 as sharing the debt file without a comparison. I read each diff: none implements or rewrites this entry. #12625 adds an older copy of it, and the others only carry it as context. ### 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 - [x] Depends on: none - [x] Fixes: none - [x] Unblocks: none - [x] GPUs tested: n/a - [x] AI-assisted: yes 🤖 Generated with [Claude Code](https://claude.com/claude-code)
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!15097
No description provided.