fix(savedata): build libSceSaveData and libSceSaveDataDialog from the native sources #7780

Merged
savvaniss merged 7 commits from upstream-pr/7780 into main 2026-10-28 00:48:06 +00:00
savvaniss commented 2026-10-19 07:11:05 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by savvaniss on 2026-10-19T07:11:05Z.


What

PS4 titles import save data from libSceSaveData and libSceSaveDataDialog, and a converted title loads exactly the modules its DT_NEEDED names. Those two libraries were separate, older implementations. libSceSaveData exports 9 functions (sceSaveDataInitialize3, sceSaveDataTransferringMount, the memory-2 calls, …) and libSceSaveDataDialog exports 8. The maintained implementations are libSceSaveData.native (30 functions) and libSceSaveDataDialog.native (10). They have sceSaveDataDelete, sceSaveDataDirNameSearch, sceSaveDataSetParam, sceSaveDataSaveIcon, sceSaveDataDialogUpdateStatus and sceSaveDataDialogGetStatus, which a PS4 title imports from the plain modules. Such a title failed at startup with unresolved ELF import for each of them. Details for CUSA03312: #6977 comment.

  • libSceSaveData and libSceSaveDataDialog are now built from the .native sources, the way libSceNgs2 is built from libSceNgs2.native (SaveDataLibrary.cmake, SaveDataDialogLibrary.cmake). Their exports become a superset of the old ones: every function the old libraries exported is in the native ones.
  • The old implementation (SaveDataCore.hpp, Export.cpp, 1,487 lines) and its savedata_core_write_replacement test variant are removed. SaveDataWriteReplacement.cpp keeps only its native path. SaveDataFile.hpp stays where it is, since the native library and savedata_replace_file_failure include it.
  • Behaviour change for titles that already used libSceSaveData: the old implementation kept save-data memory in _sd/sce_sdmemory/<user>/memory.dat and mount aliases in _sd/_aliases. The native one uses _sd_mem/u<user>/slot<n>.bin and plain _sd/<dir>. Memory saved through the old library is not read after this change. oneandonlydean chose the native layout without a migration (comment), unless a PS5 title is known to keep real save-data memory through the plain module. I found none. No issue, pull request or discussion names a title that calls sceSaveDataSetupSaveDataMemory2, sceSaveDataSetSaveDataMemory2 or sceSaveDataSyncSaveDataMemory, and that includes the pull requests behind each save-memory fix. 65a6531b6 only declares pending exports that throw. The gap is recorded in docs/dev/debt/libSceSaveData.md.
  • The native library now has all 70 save-data commits behind both module names. The old one had 11, and recent fixes (memory journal, transaction resources, Mount3 checks) only went into .native.

Tested

Windows 11 Pro 26300, WinLibs GCC 15.2.0 r7, Release.

  • Merges of main, 24 and 25 Oct:

    • 6cd36e6517, merge commit 797e2b9733. The only conflict was core/libs/CMakeLists.txt: main added two libSceNpCppWebApi tests next to the savedata_core_write_replacement lines this branch removes. The merge keeps both tests, and that test stays removed.
    • cceb6c3c41, merge commit 7394d62549. main's canonical-header refactor (f38d29fd08) edited the old sources this branch removes, and they stay removed. Its new include/Api.hpp headers for libSceSaveData and libSceSaveDataDialog stay. They declare those modules' exports, which the native sources implement.
    • The refactor also made libkernel's EventFlag.cpp, libSceNpCommon's Runtime.cpp and GuestKernelErrors.cpp include the old SaveDataCore.hpp. They use nothing from it and build without it, so the include is dropped. SaveDataWriteReplacement.cpp takes main's header and keeps only the native path.

    All 13 save-data tests and guest_kernel_error pass 3 of 3 on the second merge. libkernel and libSceNpCommon build. The save-data tests are:

    • guest_savedata_cancel, _convert, _delete, _dialog, _mount_status, _ps4 and _search;
    • savedata_memory_growth, _growth_read_failure, _journal and _metadata;
    • savedata_native_write_replacement and savedata_replace_file_failure.

    The built libSceSaveData.prx and libSceSaveDataDialog.prx are again the same size as their .native counterparts: 271,546 and 81,593 bytes. patched_libraries was not rerun on the merge, since it loads every built .prx.

  • Earlier runs, on main 7f596df48 with the branch rebased onto 6b8228b2b:

    • The save-data tests and patched_libraries (which loads every built .prx), 3 runs each: 15 of 15 pass on main, and 14 of 14 with this branch. The difference is the removed savedata_core_write_replacement. With this branch, the -R "savedata|SaveData|patched_libraries" set includes guest_savedata_cancel, _convert, _delete, _dialog, _mount_status, _search, the four savedata_memory_* tests, savedata_native_write_replacement, savedata_replace_file_failure and patched_libraries.
    • At that point the built libSceSaveData.prx and libSceSaveDataDialog.prx were the same size as their .native counterparts (266,554 and 81,593 bytes), and their NID exports include Delete, DirNameSearch, SetParam, SaveIcon and DialogUpdateStatus.
    • CUSA03312 (my own dump), with this commit applied on #6977's head 93eeee014, whose .native library also has the PS4 sceSaveDataInitialize, sceSaveDataMount and sceSaveDataUmount. With only libSceSaveData.prx and libSceSaveDataDialog.prx rebuilt, startup goes from 28 unresolved imports to 20. Exactly the 8 save-data imports resolve and no new import appears. The libraries this branch builds on main export 5 of those 8; the other 3 are the PS4 wrappers that #6977 adds to .native.
  • python3 tools/check_conventions.py --base origin/main on the merge: no errors. One debt-length warning remains, for the 6,140-character pending-declarations entry from 65a6531b6, which this branch moves to libSceSaveData.native.md unchanged.

  • Risk and Monopoly Plus (CUSA03312), 20 Oct: this change resolves their save-data imports. With it in the stack of #7198 (on an RX 9070 XT), Risk plays a local match against the AI and Monopoly Plus reaches its loading screen.

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 (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. tools/pr_overlap.py --branch (24 Oct) lists the following:

    • #8285 (DealPotato, sceSaveDataMount2) declares the same pending exports and changes the same save-data files. oneandonlydean plans it on top of this pull request.
    • #9819 and #9826 change libSceSaveData.native/Export.cpp.
    • Other pull requests share core/libs/CMakeLists.txt.

    Those could not be compared, because they conflict with main.

  • Fixes: none

  • Unblocks: CUSA03312 #7198

  • GPUs tested: n/a

  • AI-assisted: yes (Claude Code)

🤖 Generated with Claude Code

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4917264280 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7780). Originally posted by [savvaniss](https://github.com/savvaniss) on 2026-10-19T07:11:05Z. --- ### What PS4 titles import save data from `libSceSaveData` and `libSceSaveDataDialog`, and a converted title loads exactly the modules its DT_NEEDED names. Those two libraries were separate, older implementations. `libSceSaveData` exports 9 functions (`sceSaveDataInitialize3`, `sceSaveDataTransferringMount`, the memory-2 calls, …) and `libSceSaveDataDialog` exports 8. The maintained implementations are `libSceSaveData.native` (30 functions) and `libSceSaveDataDialog.native` (10). They have `sceSaveDataDelete`, `sceSaveDataDirNameSearch`, `sceSaveDataSetParam`, `sceSaveDataSaveIcon`, `sceSaveDataDialogUpdateStatus` and `sceSaveDataDialogGetStatus`, which a PS4 title imports from the plain modules. Such a title failed at startup with `unresolved ELF import` for each of them. Details for CUSA03312: [#6977 comment](https://github.com/boykopovar/AnyPS5/pull/6977#issuecomment-6255158001). - `libSceSaveData` and `libSceSaveDataDialog` are now built from the `.native` sources, the way `libSceNgs2` is built from `libSceNgs2.native` (`SaveDataLibrary.cmake`, `SaveDataDialogLibrary.cmake`). Their exports become a superset of the old ones: every function the old libraries exported is in the native ones. - The old implementation (`SaveDataCore.hpp`, `Export.cpp`, 1,487 lines) and its `savedata_core_write_replacement` test variant are removed. `SaveDataWriteReplacement.cpp` keeps only its native path. `SaveDataFile.hpp` stays where it is, since the native library and `savedata_replace_file_failure` include it. - **Behaviour change for titles that already used `libSceSaveData`:** the old implementation kept save-data memory in `_sd/sce_sdmemory/<user>/memory.dat` and mount aliases in `_sd/_aliases`. The native one uses `_sd_mem/u<user>/slot<n>.bin` and plain `_sd/<dir>`. Memory saved through the old library is not read after this change. oneandonlydean chose the native layout without a migration ([comment](https://github.com/boykopovar/AnyPS5/pull/7780#issuecomment-6377857313)), unless a PS5 title is known to keep real save-data memory through the plain module. I found none. No issue, pull request or discussion names a title that calls `sceSaveDataSetupSaveDataMemory2`, `sceSaveDataSetSaveDataMemory2` or `sceSaveDataSyncSaveDataMemory`, and that includes the pull requests behind each save-memory fix. 65a6531b6 only declares pending exports that throw. The gap is recorded in `docs/dev/debt/libSceSaveData.md`. - The native library now has all 70 save-data commits behind both module names. The old one had 11, and recent fixes (memory journal, transaction resources, Mount3 checks) only went into `.native`. ### Tested Windows 11 Pro 26300, WinLibs GCC 15.2.0 r7, Release. - **Merges of `main`, 24 and 25 Oct:** - `6cd36e6517`, merge commit `797e2b9733`. The only conflict was `core/libs/CMakeLists.txt`: `main` added two `libSceNpCppWebApi` tests next to the `savedata_core_write_replacement` lines this branch removes. The merge keeps both tests, and that test stays removed. - `cceb6c3c41`, merge commit `7394d62549`. `main`'s canonical-header refactor (f38d29fd08) edited the old sources this branch removes, and they stay removed. Its new `include/Api.hpp` headers for `libSceSaveData` and `libSceSaveDataDialog` stay. They declare those modules' exports, which the native sources implement. - The refactor also made `libkernel`'s `EventFlag.cpp`, `libSceNpCommon`'s `Runtime.cpp` and `GuestKernelErrors.cpp` include the old `SaveDataCore.hpp`. They use nothing from it and build without it, so the include is dropped. `SaveDataWriteReplacement.cpp` takes `main`'s header and keeps only the native path. All 13 save-data tests and `guest_kernel_error` pass 3 of 3 on the second merge. `libkernel` and `libSceNpCommon` build. The save-data tests are: - `guest_savedata_cancel`, `_convert`, `_delete`, `_dialog`, `_mount_status`, `_ps4` and `_search`; - `savedata_memory_growth`, `_growth_read_failure`, `_journal` and `_metadata`; - `savedata_native_write_replacement` and `savedata_replace_file_failure`. The built `libSceSaveData.prx` and `libSceSaveDataDialog.prx` are again the same size as their `.native` counterparts: 271,546 and 81,593 bytes. `patched_libraries` was not rerun on the merge, since it loads every built `.prx`. - **Earlier runs, on `main` `7f596df48` with the branch rebased onto `6b8228b2b`:** - The save-data tests and `patched_libraries` (which loads every built `.prx`), 3 runs each: 15 of 15 pass on `main`, and 14 of 14 with this branch. The difference is the removed `savedata_core_write_replacement`. With this branch, the `-R "savedata|SaveData|patched_libraries"` set includes `guest_savedata_cancel`, `_convert`, `_delete`, `_dialog`, `_mount_status`, `_search`, the four `savedata_memory_*` tests, `savedata_native_write_replacement`, `savedata_replace_file_failure` and `patched_libraries`. - At that point the built `libSceSaveData.prx` and `libSceSaveDataDialog.prx` were the same size as their `.native` counterparts (266,554 and 81,593 bytes), and their NID exports include Delete, DirNameSearch, SetParam, SaveIcon and DialogUpdateStatus. - CUSA03312 (my own dump), with this commit applied on #6977's head `93eeee014`, whose `.native` library also has the PS4 `sceSaveDataInitialize`, `sceSaveDataMount` and `sceSaveDataUmount`. With only `libSceSaveData.prx` and `libSceSaveDataDialog.prx` rebuilt, startup goes from 28 unresolved imports to 20. Exactly the 8 save-data imports resolve and no new import appears. The libraries this branch builds on `main` export 5 of those 8; the other 3 are the PS4 wrappers that #6977 adds to `.native`. - `python3 tools/check_conventions.py --base origin/main` on the merge: no errors. One `debt-length` warning remains, for the 6,140-character pending-declarations entry from 65a6531b6, which this branch moves to `libSceSaveData.native.md` unchanged. - **Risk and Monopoly Plus (CUSA03312), 20 Oct:** this change resolves their save-data imports. With it in the stack of #7198 (on an RX 9070 XT), Risk plays a local match against the AI and Monopoly Plus reaches its loading screen. ### Checklist <!-- Rules behind each item: https://github.com/boykopovar/AnyPS5/blob/main/CONTRIBUTING.md --> - [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 under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file - [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. `tools/pr_overlap.py --branch` (24 Oct) lists the following: - #8285 (DealPotato, `sceSaveDataMount2`) declares the same pending exports and changes the same save-data files. oneandonlydean plans it on top of this pull request. - #9819 and #9826 change `libSceSaveData.native/Export.cpp`. - Other pull requests share `core/libs/CMakeLists.txt`. Those could not be compared, because they conflict with `main`. - [x] Fixes: none - [x] Unblocks: CUSA03312 #7198 - [x] GPUs tested: n/a - [x] AI-assisted: yes (Claude Code) 🤖 Generated with [Claude Code](https://claude.com/claude-code)
DealPotato commented 2026-10-19 15:24:45 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by DealPotato on 2026-10-19T15:24:45Z.


Tested with inFAMOUS Second Son (CUSA00004, my own dump) on Windows 11 Pro, WinLibs GCC 15.2.0 r7, NVIDIA RTX 4070.

Setup: this PR's commit 4e8bd1609 cherry-picked onto #6977's head 93eeee014, together with the jump-table fix now merged as #6595. The run directory's libs came straight from the build output.

On #6977 without this PR, Second Son's save-data imports (sceSaveDataDelete, DirNameSearch, SaveIcon, SetParam, Umount, sceSaveDataDialogUpdateStatus) only resolved after I copied the .native modules over the plain names. With this PR, no copy is needed:

  • The title loads and reaches its entry point.
  • It reads its save icon.
  • It gets as far as before, to GPU submission and the 1D GCN image stop discussed on #6977.

The plain and .native modules now export the same functions (90 for save data, 10 for the dialog).

One more import Second Son needs that neither module has yet is sceSaveDataMount2. In this test it came from a local addition in libSceSaveData.native that takes the PS4 SceSaveDataMount2 as Mount3 without the system blocks and resource fields. I can send it as a follow-up on top of this PR if that suits you.

AI-assisted: yes (Claude Code)

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6270835503 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7780#issuecomment-6270835503). Originally posted by [DealPotato](https://github.com/DealPotato) on 2026-10-19T15:24:45Z. --- Tested with inFAMOUS Second Son (CUSA00004, my own dump) on Windows 11 Pro, WinLibs GCC 15.2.0 r7, NVIDIA RTX 4070. Setup: this PR's commit `4e8bd1609` cherry-picked onto #6977's head `93eeee014`, together with the jump-table fix now merged as #6595. The run directory's `libs` came straight from the build output. On #6977 without this PR, Second Son's save-data imports (`sceSaveDataDelete`, `DirNameSearch`, `SaveIcon`, `SetParam`, `Umount`, `sceSaveDataDialogUpdateStatus`) only resolved after I copied the `.native` modules over the plain names. With this PR, no copy is needed: - The title loads and reaches its entry point. - It reads its save icon. - It gets as far as before, to GPU submission and the 1D GCN image stop discussed on #6977. The plain and `.native` modules now export the same functions (90 for save data, 10 for the dialog). One more import Second Son needs that neither module has yet is `sceSaveDataMount2`. In this test it came from a local addition in `libSceSaveData.native` that takes the PS4 `SceSaveDataMount2` as `Mount3` without the system blocks and resource fields. I can send it as a follow-up on top of this PR if that suits you. AI-assisted: yes (Claude Code)
savvaniss commented 2026-10-19 15:34:27 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by savvaniss on 2026-10-19T15:34:27Z.


@DealPotato thanks for testing with Second Son. Yes, please send sceSaveDataMount2 as its own PR with Depends on: #7780. This one stays a draft until the maintainers decide how to migrate the old save-data memory location.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6271027093 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7780#issuecomment-6271027093). Originally posted by [savvaniss](https://github.com/savvaniss) on 2026-10-19T15:34:27Z. --- @DealPotato thanks for testing with Second Son. Yes, please send `sceSaveDataMount2` as its own PR with `Depends on: #7780`. This one stays a draft until the maintainers decide how to migrate the old save-data memory location.
DealPotato commented 2026-10-20 08:39:30 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by DealPotato on 2026-10-20T08:39:30Z.


@savvaniss done: #8285 adds sceSaveDataMount2 on top of this branch, with Depends on: #7780. It takes the PS4 SceSaveDataMount2 (Mount3's parameters without the system blocks and the resource field) and mounts through sceSaveDataMount3, so the result and the error codes are Mount3's; guest_savedata_ps4 covers it.

AI-assisted: yes (Claude Code)

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6286983808 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7780#issuecomment-6286983808). Originally posted by [DealPotato](https://github.com/DealPotato) on 2026-10-20T08:39:30Z. --- @savvaniss done: #8285 adds `sceSaveDataMount2` on top of this branch, with `Depends on: #7780`. It takes the PS4 `SceSaveDataMount2` (Mount3's parameters without the system blocks and the resource field) and mounts through `sceSaveDataMount3`, so the result and the error codes are Mount3's; `guest_savedata_ps4` covers it. AI-assisted: yes (Claude Code)
savvaniss commented 2026-10-21 10:09:27 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by savvaniss on 2026-10-21T10:09:27Z.


Merged main b6fe513b9 to clear the conflict; the head is now ad5516e2d. 65a6531b6 ("declare pending PS5 exports") added 66 NotImplemented_nid_no_patch declarations to libSceSaveData/Export.cpp, which this PR removes. Here is how the merge keeps both sides:

  • The 66 declarations, unchanged, are now at the end of libSceSaveData.native/Export.cpp, which both save data libraries are built from. None of them clashed with an existing native export, and the built libSceSaveData.prx exports them.
  • Their debt entry moved to docs/dev/debt/libSceSaveData.native.md, with its links pointing at that file. The conventions check requires that, since the entry now links the native library.

All 13 savedata tests pass on Windows with the merge (guest_savedata_* and savedata_*), and tools/check_conventions.py --base origin/main reports no errors. Its one warning is the length of the moved entry, as on main.

AI-assisted: yes (Claude Code)

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6313421501 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7780#issuecomment-6313421501). Originally posted by [savvaniss](https://github.com/savvaniss) on 2026-10-21T10:09:27Z. --- Merged `main` `b6fe513b9` to clear the conflict; the head is now `ad5516e2d`. 65a6531b6 ("declare pending PS5 exports") added 66 `NotImplemented_nid_no_patch` declarations to `libSceSaveData/Export.cpp`, which this PR removes. Here is how the merge keeps both sides: - The 66 declarations, unchanged, are now at the end of `libSceSaveData.native/Export.cpp`, which both save data libraries are built from. None of them clashed with an existing native export, and the built `libSceSaveData.prx` exports them. - Their debt entry moved to `docs/dev/debt/libSceSaveData.native.md`, with its links pointing at that file. The conventions check requires that, since the entry now links the native library. All 13 `savedata` tests pass on Windows with the merge (`guest_savedata_*` and `savedata_*`), and `tools/check_conventions.py --base origin/main` reports no errors. Its one warning is the length of the moved entry, as on `main`. AI-assisted: yes (Claude Code)
jotitadev commented 2026-10-27 01:26:45 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by jotitadev on 2026-10-27T01:26:45Z.

Review: COMMENTED


Linux run of head 7394d6254, merged with --no-commit onto main e2d457be3 (clean merge, no conflicts; no file left including SaveDataCore.hpp).

Machine: Linux x86_64, i7-8700, Ubuntu 26.04, GCC 15.2, Release, BUILD_TESTING=ON, incremental build of libs plus the save-data, patched_libraries and guest_kernel_error test targets (770 steps, no new warnings in the save-data sources).

Tests

  • ctest -R "savedata|patched_libraries|^guest_kernel_errors$": 15/15 pass. That includes patched_libraries, which the description says was not rerun on the merge: it loads the rebuilt plain libSceSaveData.prx / libSceSaveDataDialog.prx and passes.
  • The 13 save-data tests plus patched_libraries, --repeat until-fail:20 -j6: 14/14 pass every round.

Exports (patched .prx, nm -D --defined-only, NIDs only)

Module main this PR
libSceSaveData 75 132
libSceSaveData.native 66 132
libSceSaveDataDialog 8 10
libSceSaveDataDialog.native 10 10
  • Every NID that main's plain libSceSaveData and libSceSaveDataDialog export is still exported (0 missing), so no title that imports the plain names loses a symbol at link time. The 132 are exactly the union of main's two save-data export sets (75 + 66, 9 shared).
  • The plain and .native modules now export identical NID sets on Linux, matching the equal sizes you saw on Windows (here 191,952 and 16,112 bytes per pair).

Not covered here: the memory-layout change (_sd/sce_sdmemory -> _sd_mem) has no migration test, as the description already says.

Written with AI assistance (Claude Code). I ran the builds and tests above on my machine.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5661200795 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7780#pullrequestreview-5661200795). Originally posted by [jotitadev](https://github.com/jotitadev) on 2026-10-27T01:26:45Z. **Review:** COMMENTED --- Linux run of head `7394d6254`, merged with `--no-commit` onto `main` `e2d457be3` (clean merge, no conflicts; no file left including `SaveDataCore.hpp`). Machine: Linux x86_64, i7-8700, Ubuntu 26.04, GCC 15.2, Release, `BUILD_TESTING=ON`, incremental build of `libs` plus the save-data, `patched_libraries` and `guest_kernel_error` test targets (770 steps, no new warnings in the save-data sources). **Tests** - `ctest -R "savedata|patched_libraries|^guest_kernel_errors$"`: 15/15 pass. That includes `patched_libraries`, which the description says was not rerun on the merge: it loads the rebuilt plain `libSceSaveData.prx` / `libSceSaveDataDialog.prx` and passes. - The 13 save-data tests plus `patched_libraries`, `--repeat until-fail:20 -j6`: 14/14 pass every round. **Exports (patched `.prx`, `nm -D --defined-only`, NIDs only)** | Module | `main` | this PR | |---|---|---| | `libSceSaveData` | 75 | 132 | | `libSceSaveData.native` | 66 | 132 | | `libSceSaveDataDialog` | 8 | 10 | | `libSceSaveDataDialog.native` | 10 | 10 | - Every NID that `main`'s plain `libSceSaveData` and `libSceSaveDataDialog` export is still exported (0 missing), so no title that imports the plain names loses a symbol at link time. The 132 are exactly the union of `main`'s two save-data export sets (75 + 66, 9 shared). - The plain and `.native` modules now export identical NID sets on Linux, matching the equal sizes you saw on Windows (here 191,952 and 16,112 bytes per pair). Not covered here: the memory-layout change (`_sd/sce_sdmemory` -> `_sd_mem`) has no migration test, as the description already says. Written with AI assistance (Claude Code). I ran the builds and tests above on my machine.
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!7780
No description provided.