Skip to content

docs(debt): note how titles call sceFontRenderCharGlyphImage - #10636

Merged
adriadam10 merged 1 commit into
boykopovar:mainfrom
xXPBSXx:docs/debt-font-renderglyphimage-title
Oct 26, 2026
Merged

adriadam10 merged 1 commit into
boykopovar:mainfrom
xXPBSXx:docs/debt-font-renderglyphimage-title

Conversation

@xXPBSXx

@xXPBSXx xXPBSXx commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor

What

The added entry reads:

sceFontRenderCharGlyphImage, sceFontRenderCharGlyphImageHorizontal, sceFontRenderCharGlyphImageVertical (libSceFont) - four titles disassembled for this entry import them: PPSA01530 (CharGlyphImage, 2 call sites), PPSA13356 (CharGlyphImage, 4), PPSA15246 (Horizontal, 3) and PPSA14421 (Horizontal, 1); none imports Vertical. PPSA13356 initialises two surfaces of 64 x 64 and 1920 x 1080 at 1 byte per pixel (0xba084, 0xba5e8) and calls again with the character '_' (0x5f) at 0xba111 when the first call (0xba0e2) returns nonzero; PPSA15246 (0x229413) and PPSA14421 (0x1054d8) do not test the result. The extents of the other surfaces are run-time values, so whether any title passes 0 is not shown.

Changed: docs/dev/debt/libSceFont.md (a new entry next to the existing one on zero-extent surfaces from #9992). No code change.

Method: Ghidra 12.1.4 headless on the unwrapped executables of the titles named; the addresses are the call sites in those executables as Ghidra maps them, read from the instruction listing (static reading only, nothing run on a console). Each statement was checked in two independent readings; statements only one reading covered were left out. The listings and decompiled code are game code and are not attached.

Fixes: #10635

Tested

Documentation only. tools/check_conventions.py --base upstream/main passes; rebased onto main f4aabbb122 (head 0a17562fc7; the conflict was only the neighbouring sceFontCreateString entry from main, both kept, this entry unchanged); git merge-tree against current main bd8e13428a is clean. Not built, not run.

Overlap

#8250 (open) adds a stride entry for the same functions to the same section of docs/dev/debt/libSceFont.md. #8250 already conflicts with main in that file by itself (it is DIRTY), so a merge of the two heads conflicts at the start of Unknown function info; this PR merges cleanly with main. Order: this PR goes first; if #8250 lands first, I rebase and keep its stride entry, the existing zero-extent entry and the title-call entry of this PR.

Checklist

AI-assisted (Claude Code).

🤖 Generated with Claude Code

@MarcZX10 MarcZX10 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed exact head 024e2a678413a7a0fad6b5ffedb7bf2c8a4f3931. The documentation is focused and separates observed static call sites from the unknown runtime surface extents. Hosted eligibility, intake and labels pass; the first conventions run was cancelled and the retry passes. git diff --check upstream/main...HEAD passes. I did not independently verify the Ghidra findings because the title executables are not available in this review environment.

One checklist claim needs follow-up: the current open #8250 changes the same docs/dev/debt/libSceFont.md section. A git merge-tree against the current heads reports a content conflict at the start of Unknown function info; #8250's stride entry and this PR's zero-extent and title-call entries all need to be retained. That contradicts this PR's statement that the entries merge cleanly in either order. Please coordinate with #8250's author, correct the overlap note, and record the agreed merge order/dependency as required by CONTRIBUTING.

The issue search found no other open or closed issue with this exact API/title-call note. I found no duplicate implementation.

@MarcZX10 MarcZX10 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Correction to my previous review: I rechecked the exact head against current upstream/main. #10636 merges cleanly with that base; the git merge-tree result I previously attributed to combining it with #8250 is not enough to establish a conflict caused by this PR, because #8250 itself conflicts with current main in docs/dev/debt/libSceFont.md. The actual overlap is limited to both PRs adding debt entries for these APIs in the same section. Your body already identifies #8250, but “merge cleanly in either order” is not established while #8250 needs a rebase; please agree the insertion/rebase order with its author and update the overlap note/Depends on if one must land first. I withdraw the claim of a conflict in code or test files; this is a docs-section coordination point only. I could not independently verify the Ghidra addresses because title binaries/listings are unavailable here.

@xXPBSXx

xXPBSXx commented Oct 24, 2026

Copy link
Copy Markdown
Contributor Author

@MarcZX10 thanks, and thanks for the correction. "Merge cleanly in either order" was not established: #8250 already conflicts with main in docs/dev/debt/libSceFont.md by itself (it is DIRTY), so a merge of the two heads conflicts at the start of Unknown function info, while this PR merges cleanly with main. The overlap note is corrected. Order: this PR goes first; if #8250 lands first, I rebase and keep its stride entry, the existing zero-extent entry and the title-call entry of this PR. The checklist keeps Depends on: none and names the order. I have not contacted #8250's author.
AI-assisted (Claude Code).

@github-actions

github-actions Bot commented Oct 24, 2026 •

Copy link
Copy Markdown

Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.

Pull request Shared files not compared
PR 5209 docs/dev/debt/libSceFont.md
PR 8250 docs/dev/debt/libSceFont.md

@github-actions github-actions Bot added the docs label Oct 24, 2026

@MarcZX10 MarcZX10 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Re-reviewed exact head 024e2a678413a7a0fad6b5ffedb7bf2c8a4f3931. The author corrected the overlap note: #10636 is clean against current main; #8250 is independently dirty and must rebase if it lands first, with all three debt entries retained. The PR now explicitly prefers this PR first and commits to rebasing if that order changes. Local exact-head git diff --check, tools/check_conventions.py --base upstream/main, and git merge-tree against current upstream main pass. Hosted eligibility, conventions retry, intake and labels pass; product build jobs were skipped. I cannot independently verify the static Ghidra observations without the title executables/listings.

@github-actions github-actions Bot added fix error Closes an issue (Fixes #N) needs rebase Conflicts with main, rebase needed labels Oct 24, 2026
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@xXPBSXx
xXPBSXx force-pushed the docs/debt-font-renderglyphimage-title branch from 024e2a6 to 0a17562 Compare October 25, 2026 01:10
@github-actions github-actions Bot removed the needs rebase Conflicts with main, rebase needed label Oct 25, 2026
@adriadam10 adriadam10 self-assigned this Oct 26, 2026
@adriadam10
adriadam10 merged commit 7a21897 into boykopovar:main Oct 26, 2026
11 checks passed
@adriadam10

Copy link
Copy Markdown
Collaborator

Checked the entry against the existing zero-extent entry and Layout.cpp, conventions and merge-tree against main are clean, docs-only; the Ghidra call-site readings could not be reproduced here. Merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs fix error Closes an issue (Fixes #N)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

libSceFont debt: note how titles call sceFontRenderCharGlyphImage

3 participants