fix(savedata): export sceSaveDataCancel #2623

Merged
oneandonlydean merged 1 commit from upstream-pr/2623 into main 2026-10-10 08:50:54 +00:00
oneandonlydean commented 2026-10-10 08:29:08 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-10T08:29:08Z.


Fix for #2598.

What

libSceSaveData exports sceSaveDataCancel (e6y3WMBYbiM). Its signature is unknown, so it is added without an implementation and throws NotImplemented if it is called, like sceSaveDataConvert. TechnicalDebt records it. New test guest_savedata_cancel calls it and expects that error.

Why

Palworld (PPSA23126) imports it, so start-up stops before the title runs:

FAIL: unresolved ELF import e6y3WMBYbiM from libSceSaveData.native.prx

Every save data call here finishes before it returns, so nothing is ever in flight to cancel. What the console returns then, and which arguments the function takes, is not known, so it is not guessed.

Tested

  • guest_savedata_cancel cannot link against main's libSceSaveData.native, which has no sceSaveDataCancel. - The full Linux and Windows build of this pull request runs the new test.
  • tools/check_conventions.py passes, and the branch merges cleanly with current main.

Fixes #2598

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 in TechnicalDebt
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4809896440 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/2623). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-10T08:29:08Z. --- Fix for #2598. ### What libSceSaveData exports `sceSaveDataCancel` (`e6y3WMBYbiM`). Its signature is unknown, so it is added without an implementation and throws `NotImplemented` if it is called, like `sceSaveDataConvert`. TechnicalDebt records it. New test `guest_savedata_cancel` calls it and expects that error. ### Why Palworld (PPSA23126) imports it, so start-up stops before the title runs: ``` FAIL: unresolved ELF import e6y3WMBYbiM from libSceSaveData.native.prx ``` Every save data call here finishes before it returns, so nothing is ever in flight to cancel. What the console returns then, and which arguments the function takes, is not known, so it is not guessed. ### Tested - `guest_savedata_cancel` cannot link against `main`'s libSceSaveData.native, which has no `sceSaveDataCancel`. - The full Linux and Windows build of this pull request runs the new test. - `tools/check_conventions.py` passes, and the branch merges cleanly with current `main`. Fixes #2598 ### 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](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed in [TechnicalDebt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/TechnicalDebt.md#silent-stubs) - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] AI-assisted: yes
github-actions[bot] commented 2026-10-10 08:38:44 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-10T08:38:44Z.


Progress report (6cc3358 → ec2bb21)

📉 System libraries: 85.75% (-0.02%, +1 declared functions)

🆕 1 declared as stubs
Library Name
libSceSaveData.native sceSaveDataCancel
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6095755340 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/2623#issuecomment-6095755340). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-10T08:38:44Z. --- <!-- progress-report --> ### Progress report (6cc3358 → ec2bb21) 📉 **System libraries**: 85.75% (-0.02%, +1 declared functions) <details> <summary>🆕 1 declared as stubs</summary> | Library | Name | | - | - | | libSceSaveData.native | `sceSaveDataCancel` | </details>
adriadam10 commented 2026-10-10 08:50:51 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-10T08:50:51Z.


Checked: builds on Linux, guest_savedata_cancel passes, NID e6y3WMBYbiM = sceSaveDataCancel (aerolib), no duplicate alias, TechnicalDebt line is under "Unknown function info", no overlap with open PRs. Throwing is exact-or-throw here since no reference gives a signature. Merging.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6095844686 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/2623#issuecomment-6095844686). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-10T08:50:51Z. --- Checked: builds on Linux, `guest_savedata_cancel` passes, NID `e6y3WMBYbiM` = `sceSaveDataCancel` (aerolib), no duplicate alias, TechnicalDebt line is under "Unknown function info", no overlap with open PRs. Throwing is exact-or-throw here since no reference gives a signature. Merging.
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!2623
No description provided.