feat(savedata): add missing cloud and sync inventory exports #13027
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/13027"
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?
Imported from boykopovar/AnyPS5. Originally posted by Celegans12 on 2026-10-29T22:26:18Z.
What
Adds seven missing
libSceSaveDataimport-resolution placeholders to the existing shared source, with one reachable public declaration for each:sceSaveDataCheckPremiumMemberK9sf4j1ASdEsceSaveDataCheckSyncStatus3q2BZJuQpYEsceSaveDataGetAllSizeProsperoBVflHqZdogcsceSaveDataGetAutoSyncInfoMDOHimunyn8sceSaveDataGetCloudInfosWToMYsKicEsceSaveDataNotifySaveDataDownloadRoXnvhw+jX0sceSaveDataSetAutoSyncSettingsRET0IGbAE+UThe name/NID pairs come from LIBRARIES.md and the per-library 13.60 metadata, pinned to
bfec40deb4c47a17d7603ee2bc79aa6862c0c56b. The metadata file's exact Git blob hash is0a607a6b64b256b4004acfcad21331bb338b974a; it was checked against the pinned Contents API, and all seven bindings were independently recomputed. A normalized global scan of 914 non-test core C/C++/header/assembly files found no current source, explicit-alias or assembly NID owner for these additions.libSceSaveDataandlibSceSaveData.nativealready compile the same nativeExport.cppthroughSaveDataLibrary.cmake. Both public umbrellas reach the existing primary API header. The shared build therefore emits these additions in both existing compiled owners. The inventory evidence is for logicallibSceSaveData; it does not separately establish native firmware exports or a new physical provider.Every new call immediately throws through
NotImplemented_nid_no_patch. Parameterlessintdeclarations are import placeholders, not verified ABI prototypes. Unknown signatures and behavior remain recorded in the native library's debt. Existing code, declarations and debt bytes are preserved around the seven additions. This implements no cloud, sync, premium-membership or download behavior and makes no title compatibility claim.This revision removes
sceSaveDataMountSysProspero2from the source, canonical header and debt entry. The collaborator's decision on #5121 requires a title ID and import log before that exact proposal is resumed; those are unavailable here. A later contributor comment on an unrelated PR is not treated as overriding that decision. The removed binding remains held and is outside this PR's corrected scope.The corrected head
2299b471cb3f5ab47970dead6856d04885e4c7b0is an actual merge of current main1a217758a55c09e817366fa4411daac854eeb3f9and the original published headd058e59ffdcc397b03a83257656f1be5d7eb1e40, with the held binding removed before the merge commit. Its diff against main contains only the seven additions in three files; the original head remains an ancestor for the same existing PR/topic.Tested
Linux x86-64, GCC 13.3.0, Release,
BUILD_TESTING=ON. Current correction base:1a217758a55c09e817366fa4411daac854eeb3f9.python3 tools/check_conventions.py --base origin/main, public-header audit, C++20 syntax compilation of the changed source and both compiled owners' public umbrellas, and whitespace checks passed. The same reachable canonical declaration serves both owners; none was duplicated in the native API header.3e43ead24cba62a70e78a14bdc7b75c682875af5, #128461c466b11a055c47fe30283781cbbbf6ad90fb6f2, #12748bb346f7cadff91367e99b2e66438ee72a468ae7e, #12699e64a9b14ef9320cf2a4eab3a6f2516deee770264, #1265046b89c8f4f6ddc37674e7fb0b58a080ff2983723, #1264443dc8a75c7456293aa33db365c46432bb13a8bb9, #12625bc6a5e4ea1ff34484812255ef7e3d07c92b7ce68, #106741842be8ecca527ec183ddab2192dc8f50551eaa4, #8630d3b5b39a255405ab0894684259a388922067affa, #8285c03058cb2ac759b6f1cccfa9535b3f7ac53c9a31. This includes #8630; its old whole-branch conflict in an unrelated mount-status test is outside this PR's three files. No shared export identity or ordering dependency was found. These manual checks do not replace the mandatory final scanner below.libSceSaveDataandlibSceSaveData.native, all twelve targets listed by the focused test setup, andnid_patcherpassed. Main1a217758a55c09e817366fa4411daac854eeb3f9passed all 11 selected CPU checks; combined validation commit6324cb13d89c0cd2cee0fa5c6ac95159bc604e8cpassed those same 11 pluspublic_headers(12/12). Its other six alias-inventory additions touch no SaveData paths. Every source/header/debt blob of this corrected topic is identical to its blob in that validation tree. Checks: sixguest_savedata_{search,delete,convert,mount_status,ps4,cancel}tests plus memory metadata, growth, growth-read-failure, journal, native write replacement and public headers.nm -D --defined-onlyverified all seven new name/NID pairs: absent in baseline and defined exactly once in each corrected compiled owner, fourteen physical definitions total. The removedsceSaveDataMountSysProspero2NIDfIu-ckf3n-ois absent from both owners in both snapshots. Independent salted SHA-1 recomputation agrees with the pinned metadata. These checks establish import identity, not firmware ABI or behavior.core/libs/tests/PatchedLibraries.cpp, compiled as a standalone loader, loaded the four-module dependency closure before and after: 4/4 loaded and zero failed in each run. The closure contains both SaveData owners plus libc/libkernel. No unknown-ABI export was invoked.tools/pr_overlap.py --repo boykopovar/AnyPS5 --branch codex/savedata-policy-correction-merge --jobs 4completed against 1,450 open PRs, excluding this same PR through its preserved original-head ancestry. It reports an uncompared #8630 source/debt pair because that peer already conflicts with main. This is not a literal clean scanner result. The 60 true-base file merges above cover all ten current peers and all three owned files in both directions: all are clean, including #8630; its unrelated whole-branch test conflict remains outside this patch. No duplicate export or ordering dependency was found.Existing save-data tests cover prior host behavior; they do not call the unknown-ABI placeholders or establish console cloud/sync semantics. Loader checks establish loading only. No tests were added solely to assert export existence or require unfinished exports to keep throwing.
The full all-library build and full CTest suite were not run. No Windows, GPU, PS5 hardware, title or Ghost of Yōtei validation.
Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)Imported from boykopovar/AnyPS5. Originally posted by rooklz on 2026-10-29T22:40:07Z.
Review: APPROVED
Host-only evidence on
d058e59ffdvs upstream/main3679074dd6: conventions PASS; pr_overlap clean (10 merged file-sharers, no open overlap); merge-tree clean; relinker ctest 499/499 here; pinned 13.60 savedata jsonl lists all eight exports; SaveDataLibrary.cmake shares Export.cpp for libSceSaveData + .native; standalone ASan harness confirms each stub throws via NotImplemented_nid_no_patch(func). AI-assisted: yes.