fix(psml): name two exports that only had NIDs #5531

Merged
KauaSantos702 merged 1 commit from upstream-pr/5531 into main 2026-10-14 23:17:01 +00:00
KauaSantos702 commented 2026-10-13 22:53:02 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by KauaSantos702 on 2026-10-13T22:53:02Z.


What

Names two libScePsml exports that were known only by their NID. Each name hashes exactly to the NID that PPSA01317 imports (tools/nid_names.py). Neither is in the aerolib list.

NID Library Name Was
xNZM9Y5lf-M libScePsml_debug (libScePsml_specularAA) scePsmlMfsrEnableSpecularAA scePsmlUnknown01
lcZD9tJraAw libScePsml_debug (libScePsml_quality8K) scePsmlMfsrEnableQuality8K scePsmlUnknown02
python -c "import sys; sys.path.insert(0, 'tools'); from nid_names import compute_nid as n; print(n('scePsmlMfsrEnableSpecularAA'), n('scePsmlMfsrEnableQuality8K'))"
xNZM9Y5lf-M lcZD9tJraAw

Descrição:

### What

Names two libScePsml exports that wEach name hashes exactly to the NID

| NID | Library | Name | Was |
|---|---|---|---|
| `xNZM9Y5lf-M` | libScePsml_debug (libScePsml_specularAA) | `scePsmlMfsrEnableSpecularAA` | `scePsmlUnknown01` |
| `lcZD9tJraAw` | libScePsml_debug (libScePsml_quality8K) | `scePsmlMfsrEnableQuality8K` | `scePsmlUnknown02` |

python -c "import sys; sys.path.insert(0, 'tools'); from nid_names import compute_nid as n; print(n('scePsmlMfsrEnableSpecularAA'), n('scePsmlMfsrEnableQuality8K'))"
xNZM9Y5lf-M lcZD9tJraAw


The names were found by generating  existing names and hashing them.They follow `scePsmlMfsrEnableLightWeight`, and they match the library names `libScePsml_specularAA` and `libScePsml_quality8K`.

The `APS5_EXPORT` NID overrides areow produces its NID, as for theneighbouring exports. Signatures are still unknown, so both still throw `NotImplemented`. The technical-debt entry now gives the names and says they come from the hash, not from aerolib.

An earlier version of this PR also named `RvID8BVeg+g` (`sceSaveDataPrepareForTransferring`). #4906 already does that, so it is left out here.

Not named here: no public NID list has the other 21 `Unknown` NIDs (17 in libkernel, 2 in libSceAgc, `n3kSX62fgNo` in libScePad, `iQS6DUtLybE` in libSceVideoRecordingP). About 10 billion generated candidates matched none of them.

### Tested

Windows 11, MinGW-w64 GCC 15.2.0 (Wrt-r7`), Release. Built`libScePsml_debug` and `libScePsml`, including the NID-patched output. `objdump -p` on the patched `.prx` files shows `xNZM9Y5lf-M` and `lcZD9tJraAw` exported by both libraries. The unpatched builds export the two new names, and the old `Unknown` names are gone. `python3 tools/check_conventions.py
--base origin/main` passes. No titl

### 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 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` 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] Unblocks: none (names only; PPSA01317 already loads with the NID-only exports)
- [x] GPUs tested: n/a
- [x] AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4850497551 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5531). Originally posted by [KauaSantos702](https://github.com/KauaSantos702) on 2026-10-13T22:53:02Z. --- ### What Names two libScePsml exports that were known only by their NID. Each name hashes exactly to the NID that PPSA01317 imports (`tools/nid_names.py`). Neither is in the aerolib list. | NID | Library | Name | Was | |---|---|---|---| | `xNZM9Y5lf-M` | libScePsml_debug (libScePsml_specularAA) | `scePsmlMfsrEnableSpecularAA` | `scePsmlUnknown01` | | `lcZD9tJraAw` | libScePsml_debug (libScePsml_quality8K) | `scePsmlMfsrEnableQuality8K` | `scePsmlUnknown02` | ``` python -c "import sys; sys.path.insert(0, 'tools'); from nid_names import compute_nid as n; print(n('scePsmlMfsrEnableSpecularAA'), n('scePsmlMfsrEnableQuality8K'))" xNZM9Y5lf-M lcZD9tJraAw Descrição: ### What Names two libScePsml exports that wEach name hashes exactly to the NID | NID | Library | Name | Was | |---|---|---|---| | `xNZM9Y5lf-M` | libScePsml_debug (libScePsml_specularAA) | `scePsmlMfsrEnableSpecularAA` | `scePsmlUnknown01` | | `lcZD9tJraAw` | libScePsml_debug (libScePsml_quality8K) | `scePsmlMfsrEnableQuality8K` | `scePsmlUnknown02` | ``` python -c "import sys; sys.path.insert(0, 'tools'); from nid_names import compute_nid as n; print(n('scePsmlMfsrEnableSpecularAA'), n('scePsmlMfsrEnableQuality8K'))" xNZM9Y5lf-M lcZD9tJraAw ``` The names were found by generating existing names and hashing them.They follow `scePsmlMfsrEnableLightWeight`, and they match the library names `libScePsml_specularAA` and `libScePsml_quality8K`. The `APS5_EXPORT` NID overrides areow produces its NID, as for theneighbouring exports. Signatures are still unknown, so both still throw `NotImplemented`. The technical-debt entry now gives the names and says they come from the hash, not from aerolib. An earlier version of this PR also named `RvID8BVeg+g` (`sceSaveDataPrepareForTransferring`). #4906 already does that, so it is left out here. Not named here: no public NID list has the other 21 `Unknown` NIDs (17 in libkernel, 2 in libSceAgc, `n3kSX62fgNo` in libScePad, `iQS6DUtLybE` in libSceVideoRecordingP). About 10 billion generated candidates matched none of them. ### Tested Windows 11, MinGW-w64 GCC 15.2.0 (Wrt-r7`), Release. Built`libScePsml_debug` and `libScePsml`, including the NID-patched output. `objdump -p` on the patched `.prx` files shows `xNZM9Y5lf-M` and `lcZD9tJraAw` exported by both libraries. The unpatched builds export the two new names, and the old `Unknown` names are gone. `python3 tools/check_conventions.py --base origin/main` passes. No titl ### 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 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` 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] Unblocks: none (names only; PPSA01317 already loads with the NID-only exports) - [x] GPUs tested: n/a - [x] AI-assisted: yes
github-actions[bot] commented 2026-10-14 03:49:53 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-14T03:49:53Z.


Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.

Pull request Conflicting files (lines on main) Same exports Same new files
#5651 docs/dev/debt/libScePsml_debug.md L6-9
#5796 docs/dev/debt/libScePsml_debug.md L6-9
#5877 docs/dev/debt/libScePsml_debug.md L6
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6160461777 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5531#issuecomment-6160461777). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-14T03:49:53Z. --- <!-- pr-overlap --> Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in **Depends on**. | Pull request | Conflicting files (lines on `main`) | Same exports | Same new files | |---|---|---|---| | #5651 | `docs/dev/debt/libScePsml_debug.md` [L6-9](https://github.com/boykopovar/AnyPS5/blob/e263fc4c87b9b2ebb9df5d70c429deb0670d123b/docs/dev/debt/libScePsml_debug.md#L6-L9) | | | | #5796 | `docs/dev/debt/libScePsml_debug.md` [L6-9](https://github.com/boykopovar/AnyPS5/blob/e263fc4c87b9b2ebb9df5d70c429deb0670d123b/docs/dev/debt/libScePsml_debug.md#L6-L9) | | | | #5877 | `docs/dev/debt/libScePsml_debug.md` [L6](https://github.com/boykopovar/AnyPS5/blob/e263fc4c87b9b2ebb9df5d70c429deb0670d123b/docs/dev/debt/libScePsml_debug.md#L6) | | |
github-actions[bot] commented 2026-10-14 21:46:03 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-14T21:46:03Z.


Progress report (9bec202 → 6f5f176)

➖ System libraries: 88.69% (+0.0%, +2 declared, -2 removed functions)

🆕 2 declared as stubs
Library Name
libScePsml_debug scePsmlMfsrEnableQuality8K
libScePsml_debug scePsmlMfsrEnableSpecularAA
🗑️ 2 removed
Library Name
libScePsml_debug scePsmlUnknown01
libScePsml_debug scePsmlUnknown02
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6179194382 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5531#issuecomment-6179194382). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-14T21:46:03Z. --- <!-- progress-report --> ### Progress report (9bec202 → 6f5f176) ➖ **System libraries**: 88.69% (+0.0%, +2 declared, -2 removed functions) <details> <summary>🆕 2 declared as stubs</summary> | Library | Name | | - | - | | libScePsml_debug | `scePsmlMfsrEnableQuality8K` | | libScePsml_debug | `scePsmlMfsrEnableSpecularAA` | </details> <details> <summary>🗑️ 2 removed</summary> | Library | Name | | - | - | | libScePsml_debug | `scePsmlUnknown01` | | libScePsml_debug | `scePsmlUnknown02` | </details>
adriadam10 commented 2026-10-14 21:49:29 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-14T21:49:29Z.


Checked compute_nid for scePsmlMfsrEnableSpecularAA / scePsmlMfsrEnableQuality8K (= xNZM9Y5lf-M / lcZD9tJraAw), the removal of the APS5_EXPORT lines (the real name already hashes to the NID), and build + ctest of libScePsml_debug on top of current main.

Added by us on your branch: rebased onto main and squashed the SaveData commits away (the branch only touches libScePsml_debug now), and moved the TechnicalDebt line out of the end of the section so it doesn't collide with #5651 and #5796.

Side note: the PR description has some garbled sentences and a duplicated block; worth cleaning up. Merging once the full Build is green.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6179250582 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5531#issuecomment-6179250582). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-14T21:49:29Z. --- Checked `compute_nid` for `scePsmlMfsrEnableSpecularAA` / `scePsmlMfsrEnableQuality8K` (= `xNZM9Y5lf-M` / `lcZD9tJraAw`), the removal of the `APS5_EXPORT` lines (the real name already hashes to the NID), and build + ctest of `libScePsml_debug` on top of current `main`. Added by us on your branch: rebased onto `main` and squashed the SaveData commits away (the branch only touches libScePsml_debug now), and moved the TechnicalDebt line out of the end of the section so it doesn't collide with #5651 and #5796. Side note: the PR description has some garbled sentences and a duplicated block; worth cleaning up. Merging once the full Build is green.
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!5531
No description provided.