Pre-Flight — WP-132 — 2026-11-30
Filled-in copy of docs/reference/pre-flight for WP-132. Verdict at the bottom.
Pre-flighted and executed in one session, started by the WP-132 drafting session after Jeff approved D1–D4 (2026-11-30). Execution runs inline, so there is no separate session prompt. EC-019 records each step’s outcome.
Header
- WP:
WP-132 - Title: Game thumbnails in the TV app’s grid
- Pre-flight date:
2026-11-30 - Targets generation(s): none (the grid and the icon packs are engine-independent)
- Targets disc(s): none; the TV’s installed Showdown and Phantom targets show the thumbnails
Dependency check
| Prereq | Status in WORK_INDEX |
Notes |
|---|---|---|
| WP-104 | 🚧 | The identity injection (tvAppAssetsDir, fork commit 03f0d4edb9) is merged and on the TV. Its open criteria (Help and a controller, licenses, splash) don’t touch this packet. |
| WP-118 | ✅ | The grid is the TV default (gui_launcher_chooser=grid in tvapp.ini). |
Rule check: WP-104 isn’t ✅, but the part WP-132 builds on is merged and installed; noted rather than blocking.
Repo + disc state
- The draft: WP-132 and EC-019 on
main(6c655d4, docs PR #327), D1–D4 in DECISIONS.md. - Nobody else holds it: no open PR in the docs repo, the fork
(
-R barefootbetters/scummvm) or the private repo names WP-132 or EC-019; no branch or worktree in any of the three does either. This session’s docs branch isclaude/wp-132-thumbnails-521e2f. - Fork worktree, the claim:
tools/New-ForkWorktree.ps1 -Branch wp-132-searchman-icon-packs, forked fromorigin/scooby-engine @ bcefc97cf4(WP-130’s merge, the fork pin). - Private worktree: branch
wp-132-tv-grid-thumbnailsfrom the private repo’sorigin/main @ dd89553. - The covers: the four D2 names, 512 × 512, PNG colour type 2, in
C:\pcloud\scooby-engine\ImagesGameThumbnails\game-thumbnails\terraglyph\withartwork-manifest.jsonone level up (9 entries, unchanged since 2026-11-30 15:14). - TV: TCL 65Q77K, Windows
adbby its mDNS serial (adb-380260560F3010005-…). versionCode 26041041 (versionName2026.4.1-wp126, installed 2026-11-30 14:35). The new build goes from 26041050. - The preview pack removed:
files/icons/gui-icons-preview.datdeleted throughrun-as;files/iconsis empty. After a restart the grid shows Showdown and Phantom as grey tiles with their names again, and Beneath a Steel Sky its stock icon (capture, kept local). scummvm.inibacked up before any change (SHA-256A1354D35…84ED2, kept local), for the byte-identical check after.- WSL build tree:
/opt/build/wt/wp132, a copy of WP-118’s/opt/build/wt/wp118with the fork commit synced over by content. Configure as WP-104:--host=android-arm-v7a --disable-all-engines --enable-engine=terraglyph,sky --with-png-prefix=/opt/build/png-v7a --disable-debug --enable-release,PKG_CONFIG_LIBDIR=/opt/build/ft-v7a/lib/pkgconfig.
What the code has today (fork bcefc97cf4)
GuiManager::initIconsSet()callsCommon::generateZipSet(_iconsSet, "gui-icons.dat", "gui-icons*.dat"), as do the shader sets withshaders.dat.generateZipSet()adds thepacksMaskfiles iniconspath, sorted by name descending (newest-named first), then the default file fromthemepath, else fromiconspath, else by name throughFile(and so SearchMan).SearchSet::add()refuses a name already present, with a warning, andSearchSet::insert()puts a node after the others of the same priority: the first added wins a lookup.- On Android, SearchMan holds (
OSystem_Android::addSysArchivesToSearchSet, at priority −1): the extractedfiles/assetsfolder and the external app folder (getSysArchives()), and the APK’s asset archive (AndroidAssetArchive). The asset archive’slistMembers()lists the asset root (AAssetManager_openDir("")), cached after the first call, andArchive::listMatchingMembers()matches each member’s name, so agui-icons-tvapp.datat the asset root is listed. Its stream (AssetInputStream,AASSET_MODE_RANDOM) seeks, which a zip needs. The same archive already servestvapp.ini(SearchMan.createReadStreamForMember) and thetvapp.ziptheme. gui-icons.datitself is in SearchMan twice on Android (the asset root andfiles/assets), and once on Windows (theWin32Resresources).- SearchMan is filled by
initBackend(), beforeGuiManager::instance()builds the icons set (base/main.cpp). - On the device: that the TCL lists the pack and loads it in this order is confirmed with the first build’s debug log (EC-019 step 3), since the installed build logs nothing about SearchMan’s members.
Design (D1 (a))
generateZipSet()adds, after theiconspathpacks, everypacksMaskfile SearchMan lists, then the default file as before.- Skipped: a file named as the default (any case), a name the set already
has (an
iconspathpack of the same name wins), and a name seen earlier in SearchMan’s order (the copy SearchMan would open counts). - The SearchMan packs are sorted as the
iconspathones are, through one shared helper, and logged with the samedebug(2)line. - The loading order is therefore:
iconspathpacks (a downloaded pack), then SearchMan packs (the TV app’sgui-icons-tvapp.dat), then the defaultgui-icons.dat. - It applies to the shader sets too (
shaders*.dat); no port ships a shader pack in its data today, so nothing changes there.
Scope lock
This repo: WP-132, EC-019, this file, WORK_INDEX.md (WP-132’s row and
the header line).
Fork: common/zip-set.{h,cpp}, staged by name. One commit, COMMON:
prefix, brand-free.
Private repo: private/tv-app-identity/thumbnails/ (the four covers and
the manifest), private/tv-app-identity/tools/New-ThumbnailPack.ps1,
private/tv-app-identity/assets/gui-icons-tvapp.dat,
private/tv-app-identity/README.md.
TV: adb install -r only; never uninstall, never clear data. A change
to scummvm.ini for the debug log is backed up and restored byte-identical.
Risk review
| Risk | Likelihood | Impact | Mitigation |
|---|---|---|---|
The default file loaded twice: SearchMan lists gui-icons.dat (Android: asset root and files/assets; Windows: Win32Res). |
high | med | Skipped by name, any case; the default is added once, as before. Checked in the debug log on Windows and the TV. |
A downloaded pack in iconspath (the Icons download in Global Options). |
med | low | It loads first and keeps its precedence; the TV app’s pack only fills icons it lacks. Checked on Windows with a stand-in pack; on the TV only if the app offers the download. |
The MD5SUMS extraction missing an update that changes only the covers. |
— | high | Avoided by design: the pack is read in place from the APK, never extracted. Checked with an update build that changes only the pack (criterion 5). |
Desktop behaviour changes: a gui-icons*.dat in a SearchMan path (the current folder, DATA_PATH, an extrapath set at start) now loads. |
low | low | Intended for a pack shipped with the data. A plain build ships none; the Windows log shows the same packs as before. |
| A slow first listing of the asset archive at start. | low | low | One AAssetDir walk of the asset root, cached; the theme lookup already lists it. |
| The German Phantom cover (D4) shipped by default. | high | low | MobyGames’ covers page sits behind a bot check this session can’t pass; the German cover ships, noted, as criterion 2 allows. The English front is one file swap and a re-run of the script. |
Verdict
- READY TO EXECUTE
- NOT READY
Prepared by: Claude (WP-132 execution session) Date: 2026-11-30