EC-019: Game thumbnails in the TV app’s grid — run sheet
Paired WP: WP-132 Purpose: Run WP-132 in a fixed order, recording each step’s outcome as it’s done. Status: done (2026-11-30); the icon download in step 3 on 2026-12-01.
Pre-flight
- WP-132 is 📝 Drafted on
main(D1–D4 answered 2026-11-30), and nobody else holds it: no open PR, branch or worktree names it. - Remove the preview pack left on the TV on 2026-11-30
(
files/icons/gui-icons-preview.dat, throughrun-as), and confirm the grid is back to grey tiles for the TerraGlyph games. - Write
docs/reference/pre-flight-WP-132-<date>.md:- the fork pin;
- whether
SearchManlists agui-icons*.datat the APK’s asset root on the TCL, and where the defaultgui-icons.datfalls in the same list; - the loading order D1 gives (
iconspathpacks, thenSearchManpacks, then the default file); - the risks: the default file loaded twice, a downloaded pack, the
MD5SUMSextraction.
- Create a fork worktree with
tools/New-ForkWorktree.ps1(D1 (a) or (c)). Never switch branches inC:\dev\scummvm. - Record the TV’s current versionCode; the new build goes above it.
Outcome: pre-flight-WP-132-2026-11-30,
READY. Nobody held WP-132 in the three repos. The preview pack is gone
(files/icons empty) and, after a restart, Showdown and Phantom are grey
tiles again (capture pf-grey-tiles). The fork worktree
wp-132-searchman-icon-packs is cut from scooby-engine @ bcefc97cf4. The
TV had versionCode 26041041. SearchMan’s listing on the TCL was confirmed
from the code, then on the device with the first build’s log (step 3).
Step 1 — The fork mechanism (time-box: 2:00)
- The D1 change, upstream-ready, one concern in one commit.
- On Windows (GCC, MSYS2 UCRT64): a pack placed where the change reads
it shows its thumbnail; with no pack,
--debuglevel=2lists the same packs as before.
Outcome: commit 4bb4c523a2, COMMON: Load icon and shader packs that
SearchMan holds (common/zip-set.{h,cpp}). GCC (UCRT64): no warning in
zip-set.cpp. On Windows SearchMan holds Win32Res (with its own
gui-icons.dat) and the current folder. Runs of the baseline exe (the same
tree without the commit) and the new one, with two TerraGlyph targets in the
grid:
| Run | Packs loaded (--debuglevel=2) |
Grid |
|---|---|---|
| Baseline, no pack | shaders.dat, gui-icons.dat |
grey tiles |
| New, no pack | shaders.dat, gui-icons.dat |
grey tiles |
New, gui-icons-tvapp.dat in the current folder |
shaders.dat, gui-icons-tvapp.dat, gui-icons.dat |
both covers |
New, that pack and a stand-in download gui-icons-20991231.dat in iconspath (a red card for showdown only) |
shaders.dat, gui-icons-20991231.dat, gui-icons-tvapp.dat, gui-icons.dat |
Showdown the red card, Phantom its cover |
| Baseline, the pack in the current folder | shaders.dat, gui-icons.dat |
grey tiles |
No already present warning in any run; Win32Res’s gui-icons.dat is
skipped by name.
Step 2 — Covers and the pack script (time-box: 1:30)
- The covers D2 names and the manifest, copied into the private
identity’s
thumbnails/byte for byte. Phantom’s is the English retail front (D4), or the German one, noted, as WP-132 criterion 2 allows. tools/New-ThumbnailPack.ps1(PowerShell 7) with itsgameidmap: size and PNG colour-type checks (2 or 6), the zipassets/gui-icons-tvapp.datwithicons/terraglyph-<gameid>.pngentries.- The pack’s entries are byte-identical to the covers (WP-132 criterion 4).
Outcome: the four covers and artwork-manifest.json are in
private/tv-app-identity/thumbnails/, SHA-256 equal to Jeff’s files, and the
committed blobs too. MobyGames’ covers page answered with a bot check this
session couldn’t pass, so no English front was found, and Phantom first
shipped Jeff’s German cover. Jeff first answered “Keep German cover”,
then supplied an English front (“here is an english cover”). That front is
now scooby-doo-phantom-of-the-knight.png, cropped square from his WebP,
which is kept in thumbnails/source/ (WP-132 §Result, D4). The other three
covers are still byte for byte.
The script stores the entries uncompressed with a fixed timestamp and reads
the pack back against the covers. Two runs gave the same pack (1,897,920
bytes, SHA-256 9AC3CB34…7085, with the German cover), and the English cover
gives 1,744,871 bytes, 3A913E1F…F59B. A cover with colour type 3, or 256 px
wide, stops it with an error.
Step 3 — TV build and check (time-box: 2:00)
- clang build with FreeType and the private identity, no new warnings
in the changed file;
adb install -ronly, never clear data. - Captures at 4 and 3 per row: each thumbnail shows, at 256 px at 4 per row, nothing lost under the flag or platform icon (criterion 3).
- The update install shows the thumbnails without a reinstall (criterion 5).
- If the app offers an icon download, the thumbnails still show with a
downloaded pack in
iconspath. Run 2026-12-01 at Jeff’s request; see the outcome. scummvm.inibyte-identical before and after any change made for the check.
Outcome: 26041050 (2026.4.1-wp132.1) installed with -r over
- The debug log on the TCL shows SearchMan listing the asset-root pack
and the order D1 gives:
shaders.dat,gui-icons-tvapp.dat,gui-icons.dat, no warning. Both installed games show their covers:- at 4 per row, each measures 256 × 256 px in the capture;
- at 3 per row, about 380 px.
The list view is unchanged.
For criterion 5, two more builds differ from 26041050 only in the pack (same
MD5SUMS, same libscummvm.so):
- 26041051 has a test card for
showdown, and it showed at once over 26041050; - 26041052 has the real pack, and the cover came back, pixel-identical to 26041050’s capture.
files/icons stayed empty. With the German cover the flag sat over the end
of its title, as measured in WP-132’s draft. The English cover (26041060,
the same kind of pack-only update) is cropped so that the flag falls on sky.
On 2026-12-01 (Jeff: “run the Download Icons check on the TV”), Global Options
→ GUI → Download Icons on 26041061 fetched ScummVM’s 12 packs (356.8 MB)
into files/icons. The covers stayed, live and after a restart; the log
loaded the 12 packs, then gui-icons-tvapp.dat, then gui-icons.dat, and the
grid capture was byte-identical to tv-ac-61. The packs were then removed
and scummvm.ini restored (WP-132 §Result). scummvm.ini was restored from its pre-flight copy, byte-identical
(A1354D35…), and stayed so after a launch. Captures:
C:\pcloud\BB\DEV\wp-132-tv-captures\, hashes in WP-132 §Result.
Step 4 — Plain build (time-box: 0:45)
- With the identity unset: no
gui-icons-tvapp.datin the APK (unzip -l), and the grid’s tiles unchanged (criterion 6).
Outcome: the same tree with -PtvAppId= -PtvAppLabel= -PtvAppResDir=
-PtvAppAssetsDir= gives org.scummvm.scummvm.debug, no tvapp file and
no pack: only the stock assets/assets/gui-icons.dat. It wasn’t installed,
since the TV’s WP-079 app has that package id. The tiles-unchanged half rests
on the Windows debug log: with no pack, the commit loads the same two files
as the baseline exe, and the grid’s tiles are the same grey.
Step 5 — Close (time-box: 1:00)
- Fork PR into
scooby-engine, ScummVM-style commit, brand-free (grep every staged diff for the app’s name, its distinctive word and the package id). - Private PR: covers and manifest, script and map, pack, README specification.
- WP-132 §Result, this EC, the WORK_INDEX row.
Outcome: fork PR
barefootbetters/scummvm#56
(4bb4c523a2, COMMON:; git log -p and the PR text grepped, author line
only). Private PR
barefootbetters/scooby-engine-private#69,
merged (squash 3d4f14c), and the fork PR as e32c4137ae, both on
2026-11-30. WP-132 §Result written; WP-132 is ✅ Done. The English Phantom PNG is also in Jeff’s pCloud set,
the German one kept beside it as -de.png.
Definition of done
- Every step’s outcome recorded, WP-132’s exit criteria met, its status updated.
Out-of-scope captures
- At 3 per row the grid shows an “All” group header above the tiles, which it doesn’t at 4. Seen in passing; not this packet’s.
- MSYS2 UCRT64 lacks
cmp(diffutils), soconfigureprintscmp: command not foundand rewrites its outputs every run. Harmless; onepacman -S diffutilsaway.