Files
Mihawk 0bf3e003c8 Automate the console loop, fix the null joypad crash, bundle the RGUI fonts
tools/run-title.sh owns the whole sequence: build, publish, verify what the console
stored, listen to the kernel log, launch, watch, close the title itself, and print
the title's own trace. The hand-driven loop had produced two bad readings - runs
overlapped so one launch's trace was read as another's, and a probe build left in
place was mistaken for a finding - and neither can happen now.

Verification changed to match this console. It converts a signed fake self into a
raw ELF as it stores it, so the served file is a different container from the one
sent (8,117,072 bytes against 8,029,263; 12.8% of bytes equal). A digest check was
answering the wrong question and rejecting successful uploads, so eboot.bin is now
verified by the strings only this build carries. sce_module/libc.prx is the one
path this console will not replace, so it is reported and kept rather than fatal:
the title runs against the console's copy, and failing on it blocked eboot.bin.

The crash is fixed. Every joypad driver upstream ships needs a library this SDK
does not carry, so primary_joypad is NULL, and input_joypad_analog_axis reads
drv->axis without checking drv - inside an if (menu_is_alive) block, which is why
pass one survived and pass two died with SIGSEGV at fault address 0x18.
patches/series 0004 returns 0 when there is no driver. The title now runs
indefinitely: 1500+ frames in 25 s.

RGUI's bitmap fonts are downloaded assets, not built-ins: without
<assets>/rgui/font/bitmap10x10_eng.bin rgui_fonts_init fails and rgui_init jumps to
its error label. They are now bundled under assets/rgui/font/ and shipped.

The menu still does not draw, and the reason is measured: RGUI is alive with a
320x240 framebuffer but GFX_DISP_FLAG_FB_DIRTY is never set, so rgui_set_texture
returns every frame. That flag is set at the end of rgui_render, reached only
through menu->driver_ctx->render under MENU_STATE_BLIT. docs/FINDINGS.md records
the path there.

Evidence: bash tools/run-title.sh -> 1500+ frames, no-menu-source, closed by the
script; /app0/trace.txt; tools/verify.sh PASS (format unit build integration
evidence); port changes vs upstream retroarch.c 10 lines, gfx/video_driver.{c,h} 5,
input/input_driver.c 6, runloop.c 0, menu/drivers/rgui.c 0, every probe removed.
2026-09-18 15:41:47 -04:00
..