refactor(libSceAjm.native): name the WVorbis stubs by their NIDs #1468

Merged
arvindfroi merged 1 commit from upstream-pr/1468 into main 2026-10-08 14:36:35 +00:00
arvindfroi commented 2026-10-08 08:25:11 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by arvindfroi on 2026-10-08T08:25:11Z.


What

The two libSceAjmWVorbis stubs in libSceAjm.native had no names in the NID database. Their names follow the codec-specific sceAjmDec<Codec>... exports (sceAjmDecAt9ParseConfigData, sceAjmDecMp3ParseFrame) and the Vorbis header and setup packets:

NID Name
Z4HDpe1ZEa4 sceAjmDecWVorbisCreateHeaderPacket
oXShHcqMcX0 sceAjmDecWVorbisCreateSetupPacket

The names were found by hashing candidates built from the database's sceAjm* and sceVorbisDec* names, and checked with both compute_nid in tools/nid_names.py and Nid::ComputeNid in core/libs/nid/src/NidCompute.cpp. The stubs drop APS5_EXPORT and use these names, so the generated NIDs are unchanged and NotImplemented failures name the real function. Behaviour is unchanged. The TechnicalDebt entry now lists the names; the signatures are still unknown.

$ python3 -c "import sys; sys.path.insert(0,'tools'); from nid_names import compute_nid; print(compute_nid('sceAjmDecWVorbisCreateHeaderPacket'), compute_nid('sceAjmDecWVorbisCreateSetupPacket'))"
Z4HDpe1ZEa4 oXShHcqMcX0

Tested

tools/nid_names.py no longer lists either NID. tools/check_conventions.py --base origin/main passes. clang++ -fsyntax-only on the file has no errors. No x86-64 toolchain on this machine (Apple Silicon), so the build is left to CI. No title tested.

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 (Claude Code, Claude Opus 5.5)

🤖 Generated with Claude Code

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4783987536 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/1468). Originally posted by [arvindfroi](https://github.com/arvindfroi) on 2026-10-08T08:25:11Z. --- ### What The two libSceAjmWVorbis stubs in `libSceAjm.native` had no names in the NID database. Their names follow the codec-specific `sceAjmDec<Codec>...` exports (`sceAjmDecAt9ParseConfigData`, `sceAjmDecMp3ParseFrame`) and the Vorbis header and setup packets: | NID | Name | |---|---| | `Z4HDpe1ZEa4` | `sceAjmDecWVorbisCreateHeaderPacket` | | `oXShHcqMcX0` | `sceAjmDecWVorbisCreateSetupPacket` | The names were found by hashing candidates built from the database's `sceAjm*` and `sceVorbisDec*` names, and checked with both `compute_nid` in `tools/nid_names.py` and `Nid::ComputeNid` in `core/libs/nid/src/NidCompute.cpp`. The stubs drop `APS5_EXPORT` and use these names, so the generated NIDs are unchanged and `NotImplemented` failures name the real function. Behaviour is unchanged. The TechnicalDebt entry now lists the names; the signatures are still unknown. ``` $ python3 -c "import sys; sys.path.insert(0,'tools'); from nid_names import compute_nid; print(compute_nid('sceAjmDecWVorbisCreateHeaderPacket'), compute_nid('sceAjmDecWVorbisCreateSetupPacket'))" Z4HDpe1ZEa4 oXShHcqMcX0 ``` ### Tested `tools/nid_names.py` no longer lists either NID. `tools/check_conventions.py --base origin/main` passes. `clang++ -fsyntax-only` on the file has no errors. No x86-64 toolchain on this machine (Apple Silicon), so the build is left to CI. No title tested. ### 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 (Claude Code, Claude Opus 5.5) 🤖 Generated with [Claude Code](https://claude.com/claude-code)
github-actions[bot] commented 2026-10-08 13:41:05 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-08T13:41:05Z.


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
#1538 docs/dev/TechnicalDebt.md L159-160
#1583 docs/dev/TechnicalDebt.md L159-161
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6061173908 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/1468#issuecomment-6061173908). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-08T13:41:05Z. --- <!-- 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 | |---|---|---|---| | #1538 | `docs/dev/TechnicalDebt.md` [L159-160](https://github.com/boykopovar/AnyPS5/blob/9f4bd71cb6bf36193dcd341fad2c732f89ad80c4/docs/dev/TechnicalDebt.md#L159-L160) | | | | #1583 | `docs/dev/TechnicalDebt.md` [L159-161](https://github.com/boykopovar/AnyPS5/blob/9f4bd71cb6bf36193dcd341fad2c732f89ad80c4/docs/dev/TechnicalDebt.md#L159-L161) | | |
github-actions[bot] commented 2026-10-08 14:34:10 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-08T14:34:10Z.


Progress report (61896de → 5019c1e)

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

🆕 2 declared as stubs
Library Name
libSceAjm.native sceAjmDecWVorbisCreateHeaderPacket
libSceAjm.native sceAjmDecWVorbisCreateSetupPacket
🗑️ 2 removed
Library Name
libSceAjm.native sceAjmWVorbisUnknown00
libSceAjm.native sceAjmWVorbisUnknown01
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6062207048 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/1468#issuecomment-6062207048). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-08T14:34:10Z. --- <!-- progress-report --> ### Progress report (61896de → 5019c1e) ➖ **System libraries**: 85.15% (+0.0%, +2 declared, -2 removed functions) <details> <summary>🆕 2 declared as stubs</summary> | Library | Name | | - | - | | libSceAjm.native | `sceAjmDecWVorbisCreateHeaderPacket` | | libSceAjm.native | `sceAjmDecWVorbisCreateSetupPacket` | </details> <details> <summary>🗑️ 2 removed</summary> | Library | Name | | - | - | | libSceAjm.native | `sceAjmWVorbisUnknown00` | | libSceAjm.native | `sceAjmWVorbisUnknown01` | </details>
adriadam10 commented 2026-10-08 14:36:30 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-08T14:36:30Z.


Checked both names against compute_nid (tools/nid_names.py): sceAjmDecWVorbisCreateHeaderPacket → Z4HDpe1ZEa4, sceAjmDecWVorbisCreateSetupPacket → oXShHcqMcX0. The diff only renames the two stubs (same pattern as the other un-annotated stubs in the file) and updates the TechnicalDebt line; behaviour unchanged. Local build + ctest on top of current main: 461/461 passed. Merging once CI is green.

Note: #1538 edits the neighbouring TechnicalDebt line, so whichever lands second needs a trivial rebase.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6062252440 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/1468#issuecomment-6062252440). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-08T14:36:30Z. --- Checked both names against `compute_nid` (`tools/nid_names.py`): `sceAjmDecWVorbisCreateHeaderPacket` → `Z4HDpe1ZEa4`, `sceAjmDecWVorbisCreateSetupPacket` → `oXShHcqMcX0`. The diff only renames the two stubs (same pattern as the other un-annotated stubs in the file) and updates the TechnicalDebt line; behaviour unchanged. Local build + ctest on top of current `main`: 461/461 passed. Merging once CI is green. Note: #1538 edits the neighbouring TechnicalDebt line, so whichever lands second needs a trivial rebase.
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!1468
No description provided.