docs(libSceMsgDialog): note the sceMsgDialogOpen param layout two titles write #11511

Merged
milescoviello merged 1 commit from upstream-pr/11511 into main 2026-10-28 23:05:48 +00:00
milescoviello commented 2026-10-26 17:41:01 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by milescoviello on 2026-10-26T17:41:01Z.


What

The sceMsgDialogOpen entry in docs/dev/debt/libSceMsgDialog.md says the SceMsgDialogParam layout it reads isn't measured on a PS5. Two titles write exactly that layout. The entry now adds, before its Closes when:

PPSA21564 01.007.000 (at 0x1D8C) and PPSA30839 01.003.000 (0x19690), disassembled for this entry, write this layout: 0x88 at 0x30, mode 1 and the parameter at 0x40 with the message at 8, and PPSA21564 the button type at 0.

Both also fill the common dialog base the usual way: 0x30 at 0 and the address-derived magic at 0x2C, which Inspect doesn't read. The same two titles use fields the entry doesn't name; they are left out of the entry because they don't reach Inspect:

  • PPSA30839 at 0x44EC22E opens mode 3 with a system message parameter at 0x50 (type 6 at its offset 0) and a user id at 0x58. Inspect returns before reading anything for mode 3.
  • PPSA21564 at 0x2B84F2 passes button type 9 with, at 0x10 of the user message parameter, a pointer to two string pointers. Inspect reads only the button type and the message.

Changed: docs/dev/debt/libSceMsgDialog.md. No code change.

Method: the addresses are virtual addresses in each title's eboot.bin (unwrapped ELF, text at 0). Call sites were found through the import's PLT stub in the relinker output (app.elf, the same text moved up by 0x400000; the bytes at each site were checked against eboot.bin). The stores into the stack param before each call were read with objdump. This is static reading only: nothing was run on a console. The listings are game code and are not attached.

Tested

Documentation only. tools/check_conventions.py --base upstream/main passes. Not built, no title run.

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
  • Fixes: none
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes

🤖 Generated with Claude Code

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5021973841 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11511). Originally posted by [milescoviello](https://github.com/milescoviello) on 2026-10-26T17:41:01Z. --- ### What The `sceMsgDialogOpen` entry in `docs/dev/debt/libSceMsgDialog.md` says the `SceMsgDialogParam` layout it reads isn't measured on a PS5. Two titles write exactly that layout. The entry now adds, before its `Closes when`: > PPSA21564 01.007.000 (at 0x1D8C) and PPSA30839 01.003.000 (0x19690), disassembled for this entry, write this layout: 0x88 at 0x30, mode 1 and the parameter at 0x40 with the message at 8, and PPSA21564 the button type at 0. Both also fill the common dialog base the usual way: 0x30 at 0 and the address-derived magic at 0x2C, which `Inspect` doesn't read. The same two titles use fields the entry doesn't name; they are left out of the entry because they don't reach `Inspect`: - PPSA30839 at 0x44EC22E opens mode 3 with a system message parameter at 0x50 (type 6 at its offset 0) and a user id at 0x58. `Inspect` returns before reading anything for mode 3. - PPSA21564 at 0x2B84F2 passes button type 9 with, at 0x10 of the user message parameter, a pointer to two string pointers. `Inspect` reads only the button type and the message. Changed: `docs/dev/debt/libSceMsgDialog.md`. No code change. Method: the addresses are virtual addresses in each title's `eboot.bin` (unwrapped ELF, text at 0). Call sites were found through the import's PLT stub in the `relinker` output (`app.elf`, the same text moved up by 0x400000; the bytes at each site were checked against `eboot.bin`). The stores into the stack param before each call were read with `objdump`. This is static reading only: nothing was run on a console. The listings are game code and are not attached. ### Tested Documentation only. `tools/check_conventions.py --base upstream/main` passes. Not built, no title run. ### 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 - [x] Fixes: none - [x] Unblocks: none - [x] GPUs tested: n/a - [x] AI-assisted: yes 🤖 Generated with [Claude Code](https://claude.com/claude-code)
MarcZX10 commented 2026-10-26 17:43:06 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-26T17:43:06Z.

Review: APPROVED


Reviewed exact head e9d8a2cc92b7c940e04a654d170730d63cef43a3. The entry is consistent with the fields Inspect reads and keeps the new title-derived details explicitly scoped to static disassembly; the description also distinguishes the mode-3 path and other fields that do not reach Inspect. I did not independently inspect the proprietary title binaries or run either title, so this is a review of the documentation’s scope and consistency, not a claim of console verification.

tools/check_conventions.py and git show --check pass locally. Hosted eligibility, conventions, intake and labels pass; product and relinker jobs are skipped for this documentation-only change. No documentation defect found; approved.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5656456584 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11511#pullrequestreview-5656456584). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-26T17:43:06Z. **Review:** APPROVED --- Reviewed exact head `e9d8a2cc92b7c940e04a654d170730d63cef43a3`. The entry is consistent with the fields `Inspect` reads and keeps the new title-derived details explicitly scoped to static disassembly; the description also distinguishes the mode-3 path and other fields that do not reach `Inspect`. I did not independently inspect the proprietary title binaries or run either title, so this is a review of the documentation’s scope and consistency, not a claim of console verification. `tools/check_conventions.py` and `git show --check` pass locally. Hosted eligibility, conventions, intake and labels pass; product and relinker jobs are skipped for this documentation-only change. No documentation defect found; approved.
THEMANnt commented 2026-10-28 10:51:08 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by THEMANnt on 2026-10-28T10:51:08Z.

Review: APPROVED


Reviewed e9d8a2cc92b7c940e04a654d170730d63cef43a3 against author merge base 88795ed44801fa719eb2df990cbe1f11a1f9bd81 — approve the documentation change.

The message-dialog mode/pointer offsets and the added caller layouts remain explicitly separated from an independently confirmed console ABI. No implementation or struct layout changes are introduced.

Validation: checked the submitted Markdown diff, pinned implementation references and relative links; git diff --check passed. This changes documentation only. Title disassembly and console observations were not independently reproduced; no runtime regression result is claimed.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5681446848 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11511#pullrequestreview-5681446848). Originally posted by [THEMANnt](https://github.com/THEMANnt) on 2026-10-28T10:51:08Z. **Review:** APPROVED --- Reviewed `e9d8a2cc92b7c940e04a654d170730d63cef43a3` against author merge base `88795ed44801fa719eb2df990cbe1f11a1f9bd81` — approve the documentation change. The message-dialog mode/pointer offsets and the added caller layouts remain explicitly separated from an independently confirmed console ABI. No implementation or struct layout changes are introduced. Validation: checked the submitted Markdown diff, pinned implementation references and relative links; `git diff --check` passed. This changes documentation only. Title disassembly and console observations were not independently reproduced; no runtime regression result is claimed.
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!11511
No description provided.