WP-144 Phase B: the fork’s non-engine changes, classified
Appendix to WP-144 §Result. Run 2026-12-05 under pre-flight-WP-144-2026-12-05. Phase C reverts on this table, so every call below cites the diff it was read from. Status: signed off by Jeff, 2026-12-05 (the answers are below, the full sign-off in WP-144 §Result).
Base and counts
| Fork tip | origin/scooby-engine = 1dfbfb7375 (fork #80’s merge), re-checked before landing |
| Upstream | upstream/master = bc684bf6cb (2026-12-05) |
| Base | git merge-base of the two = 2982fe324b (2026-11-21), which the fork’s last upstream sync, d1a26e76e6, merged in |
Commits in 2982fe324b..1dfbfb7375 |
242: 174 non-merge, 68 merges |
Non-merge commits touching a file outside engines/terraglyph/ and engines/scooby/ |
35 |
| Merges carrying their own change outside the engine | none (git diff-tree --cc on all 68) |
| Engine commits that also touch a non-engine file | none |
| Files changed outside the engine, net | 61 (5,173 lines added, 103 removed) |
| Engine files changed, net | 168, all under engines/terraglyph/ |
Why not 118. The 2026-12-03 first pass counted every commit outside
engines/terraglyph/ alone, so it took in the engine’s commits from before
fork #10 renamed
engines/scooby/ to engines/terraglyph/. Counted that way at
38ec347633 (the 2026-12-03 tip) this run gets 115 non-merge commits of
236 in all; the exact 118 of 228 wasn’t reproduced, and the base or tip it
used isn’t recorded. With engines/scooby/ counted as engine, it’s 32 at
38ec347633, and 35 now: fork #80 (WP-145) added three.
Summary
| Bucket | Commits | PRs and WPs |
|---|---|---|
| Classics | 21 | #13 (WP-085), #23, #25, #28, #33 (WP-096), #36 (WP-104, five of its seven), #63, #64, #65 (WP-135, WP-136, WP-137), #80 (WP-145) |
| Upstream candidate | 13 | #36 (WP-104, two of seven), #46 (WP-118, five of six), #48 (WP-123), #56 (WP-132) |
| Already upstream | 1 | 516b27b7d3, a cherry-pick of upstream fa8126a019, in #46 |
| Engine hook | 0 | — |
| Check per commit | 0 left | All eleven first-pass rows resolved below |
| Unsure | 0 | — |
Engine hooks: none. The engine builds and runs on upstream’s shared code as it is:
engines/terraglyph/holds its ownconfigure.engine,module.mkandcredits.pl; no file outside it names the engine except Classics’ ownPackageManifest.java(it lists the TerraGlyph game ids).- The engine includes 49 headers from outside its folder. All 49 exist in
upstream/master, and none is a file the fork changed. git grepoverengines/terraglyph/finds none of the symbols or config keys the 35 commits add (gui_dpad_focus,kActionSelect,SELT,app_name,tvapp,installPackage,wantsNavigationFocus,getNavigationRect,storeControlSettings,kFontColorGridItem,hasDefault,generateZipSet,TestFeatures,ThumbnailHeightPercent,PlayBand, among others). The TV remote’s D-pad in a game comes from the engine’s own keymap (fork #38, WP-113), inside the engine.
Phase C step 3’s builds (engine on and off, then the Gen 1 self-tests) are the final check.
Mixed commits: none. No commit carries changes from two buckets. Six files carry commits from two buckets, which Phase C has to undo in the right order (below).
Upstream candidates, as offering units
Grouped the way they’d be offered. Arrows are build dependencies.
| Unit | Commits | What it does | Depends on |
|---|---|---|---|
| U1. Respect backend defaults | 4208e10800, de5c7d9597 |
GuiManager stops overwriting a backend’s registered gui_theme default, and applies a registered gui_scale default (hasKey() ignores defaults). 6 lines in gui/gui-manager.cpp. |
— |
| U2. Arrow-key focus in every dialog | 2e0ab83a01, a833b2d76e, 1a987145d7 |
Spatial focus navigation between a dialog’s controls; Return activates; gui_dpad_focus (default off) opens dialogs with a control focused; a SELT Select action for one-button controllers. |
— |
| U3. Arrow keys in the launcher grid | b07215ef99, fda7a3d6f7 |
Arrows move the grid selection and hand off at its edge; Return opens the tray. | U2 (getNavigationRect) |
| U4. Android D-pad to GUI focus | 75c9b31b34 |
With gui_dpad_focus, the Android D-pad and hat move the GUI focus and the centre key selects. Answers the TODO in android.cpp. |
U2 (Select action) |
| U5. Per-game pointer speed | 7ec11d9d8e + b29314d6d0, 50324a7cbb + 0ed285a779 |
A Control tab (pointer speed, joystick deadzone) in the game options and the in-game options, with the four standard themes’ layouts and their regenerated default.inc and zips. |
— |
| U6. Icon packs from SearchMan | 4bb4c523a2 |
generateZipSet() also loads gui-icons*.dat and shader packs that SearchMan holds (an Android build’s assets), below iconspath packs and above the default file. |
— |
Classics depends on U1 (its tvapp.ini sets the theme and scale), U2 and U4
(it turns on gui_dpad_focus) and U6 (its covers ship as an asset pack), so
classics keeps all six until upstream takes them.
Per-commit table
Bucket key: C Classics, U upstream candidate (unit), A already upstream. “Evidence” is what the diff shows.
| # | Commit | Date | PR | WP | Subject | Files | Bucket | Evidence |
|---|---|---|---|---|---|---|---|---|
| 1 | 99d611a9d8 |
11-26 | #13 | WP-085 | ANDROID: Inject the app identity at build time; grid launcher by default | android.cpp, dists/android/AndroidManifest.xml, build.gradle |
C | tvAppId/tvAppLabel/tvAppResDir Gradle properties and ${appIcon}/${appLabel}/${appBanner} manifest placeholders: the app’s identity. The android.cpp hunk (grid as default view) is removed again by #13 |
| 2 | 70a3ba0a5c |
11-27 | #13 | WP-085 | ANDROID: Hidden advanced mode for authorized test packages | advanced/** (8 new), advanced-stub/TestFeatures.java, ScummVMActivity.java, build.gradle |
C | The test-package store; ScummVMActivity gains three TestFeatures hooks (key gesture, restart request, pre-start step), no-ops in the release stub |
| 3 | 1c625e57c9 |
11-27 | #13 | WP-085 | ANDROID: Let a packaged app number its own versions | build.gradle |
C | tvAppVersionCode/tvAppVersionName |
| 4 | 6c260eb0e0 |
11-28 | #23 | WP-096 | ANDROID: Test packages: check free space before installing | advanced/** |
C | Package store only |
| 5 | 791e70d424 |
11-28 | #23 | WP-096 | ANDROID: Test packages: resume an interrupted download | advanced/** |
C | Package store only |
| 6 | 79b2298822 |
11-28 | #23 | WP-096 | ANDROID: Test packages: record installed files and add Verify | advanced/** |
C | Package store only |
| 7 | 7891d25887 |
11-28 | #23 | WP-096 | ANDROID: Test packages: survive a power cut mid-install | PackageStore.java |
C | Package store only |
| 8 | 10c9f59912 |
11-28 | #25 | WP-096 | ANDROID: Test packages: sync a finished download before verifying it | PackageStore.java |
C | Package store only |
| 9 | c802dc7e6c |
11-28 | #28 | WP-096 | ANDROID: Test packages: delete stale partial downloads; sync the store log | advanced/** |
C | Package store only |
| 10 | 1417181b81 |
11-28 | #33 | WP-096 | ANDROID: Test packages: an optional pause after each extracted file | advanced/** |
C | Package store only |
| 11 | 03f0d4edb9 |
11-28 | #36 | WP-104 | ANDROID: Let a packaged build override resources and add assets | build.gradle |
C | tvAppResDir/tvAppAssetsDir moved to the build-type source sets so the app can replace ScummVM’s resources |
| 12 | d6d14e7500 |
11-28 | #36 | WP-104 | ANDROID: Register defaults from a packaged tvapp.ini asset | android.cpp |
C | registerPackagedDefaults() reads tvapp.ini from the APK’s assets |
| 13 | b32a14a8e5 |
11-28 | #36 | WP-104 | ANDROID: Open the launcher in the list view by default again | android.cpp |
C | Removes #1’s grid default; together they leave android.cpp as before |
| 14 | 4208e10800 |
11-28 | #36 | WP-104 | GUI: Keep a default theme registered by the backend | gui/gui-manager.cpp |
U1 | registerDefault("gui_theme", …) only when !ConfMan.hasDefault; still unconditional in upstream/master (line 88) |
| 15 | 7674026c8a |
11-28 | #36 | WP-104 | GUI: Show an optional packaged header at the top of About | gui/about.cpp |
C | Reads tvapp-about.txt: the app’s branding |
| 16 | eb33de26d4 |
11-28 | #36 | WP-104 | GUI: Name a packaged app in the launcher and in-game menu strings | engines/dialogs.cpp, gui/launcher.cpp |
C | app_name replaces “ScummVM” in the launcher, errors and the in-game menu title; “powered by ScummVM” lines |
| 17 | de5c7d9597 |
11-28 | #36 | WP-104 | GUI: Apply a registered default for gui_scale | gui/gui-manager.cpp |
U1 | hasKey("gui_scale") \|\| hasDefault("gui_scale"); still hasKey only in upstream/master (line 129) |
| 18 | 516b27b7d3 |
11-22 | #46 | WP-118 | GUI: Make GridWidget accept focus | gui/widgets/grid.h |
A | Le Philousophe’s commit, “(cherry picked from commit fa8126a019…)”; fa8126a019 is in upstream/master, and git cherry marks it equivalent |
| 19 | 2e0ab83a01 |
11-29 | #46 | WP-118 | GUI: Move the focus between a dialog’s controls with the arrow keys | gui/dialog.*, gui/widget.*, gui/ThemeEngine.*, gui/saveload-dialog.cpp, gui/widgets/{edittext,list,popup,scrollcontainer,tab}.* |
U2 | Generic spatial focus navigation; ThemeEngine gains getButtonDirtyRect() and getLayerToDraw() for the focus look; no branding |
| 20 | b07215ef99 |
11-29 | #46 | WP-118 | GUI: Navigate the launcher grid with the arrow keys | gui/widgets/grid.* |
U3 | GridWidget::handleKeyDown, getNavigationRect; removes upstream’s “We should implement keyboard navigation inside the widget too” comment |
| 21 | a833b2d76e |
11-29 | #46 | WP-118 | GUI: Open dialogs with a control focused when gui_dpad_focus is set | base/commandLine.cpp, gui/dialog.cpp |
U2 | Registers gui_dpad_focus (default false) beside the other gui_* defaults |
| 22 | 1a987145d7 |
11-29 | #46 | WP-118 | GUI: Add a Select action for controllers with arrows and one button | gui/gui-manager.* |
U2 | New SELT GUI keymap action, unbound by default |
| 23 | 75c9b31b34 |
11-29 | #46 | WP-118 | ANDROID: Map the D-pad to GUI focus navigation with gui_dpad_focus | android.cpp |
U4 | Default bindings only, gated on gui_dpad_focus; replaces the TODO that asked for key navigation |
| 24 | 7ec11d9d8e |
11-29 | #48 | WP-123 | GUI: Add a Control tab to the game options | gui/editgamedialog.*, gui/options.*, four standard *.stx layouts |
U5 | GameOptions_Control in the four standard themes; tab shown only where the backend has the settings |
| 25 | b29314d6d0 |
11-29 | #48 | WP-123 | GUI: Regenerate the themes for the game options’ Control tab | gui/themes/default.inc, four theme zips |
U5 | Generated from #24’s .stx; rides with it |
| 26 | 50324a7cbb |
11-29 | #48 | WP-123 | GUI: Add a Control tab to the in-game options | engines/dialogs.cpp, gui/editgamedialog.cpp, gui/options.*, four *.stx |
U5 | GlobalConfig_Control in ConfigDialog; storeControlSettings() |
| 27 | 0ed285a779 |
11-29 | #48 | WP-123 | GUI: Regenerate the themes for the in-game options’ Control tab | gui/themes/default.inc, four theme zips |
U5 | Generated from #26’s .stx; rides with it |
| 28 | fda7a3d6f7 |
11-30 | #46 | WP-118 | GUI: Open the launcher grid’s tray with the Return key | gui/widgets/grid.cpp |
U3 | Return opens the tray (saves, options) instead of starting the game |
| 29 | 4bb4c523a2 |
11-30 | #56 | WP-132 | COMMON: Load icon and shader packs that SearchMan holds | common/zip-set.* |
U6 | Brand-free; WP-132 asked for it “written upstream-ready” |
| 30 | ff83c9d4ca |
12-02 | #63 | WP-135 | GUI: Let themes give the grid its own background and title colors | gui/ThemeEngine.*, gui/ThemeParser.cpp, gui/widgets/grid.cpp |
C | New optional draw data and colours (grid_bg, griditem_title_focus, color_griditem*); no theme in the fork’s gui/themes/ sets them, only the TV theme does |
| 31 | 33213e3fd4 |
12-02 | #64 | WP-136 | GUI: Let themes give grid slots their own height | gui/widgets/grid.* |
C | Globals.Grid.ThumbnailHeightPercent; set only by the TV theme |
| 32 | 8c1a8da030 |
12-02 | #65 | WP-137 | GUI: Let themes put a play band under short grid covers | gui/widgets/grid.* |
C | Globals.Grid.PlayBand, a “Play” band under covers; set only by the TV theme |
| 33 | 907aec1758 |
12-05 | #80 | WP-145 | ANDROID: Test packages: list beta games for the library; an install screen | advanced/**, advanced-stub/TestFeatures.java |
C | AvailableList, InstallActivity: test builds only |
| 34 | d5f1731778 |
12-05 | #80 | WP-145 | ANDROID: A call to install a test package from the library | jni-android.*, ScummVM.java, ScummVMActivity.java |
C | JNI::installPackage → TestFeatures.installPackage; TestFeatures.onAppStart |
| 35 | 5d07aa53c8 |
12-05 | #80 | WP-145 | GUI: Get and Update tiles in the grid from a test build’s package list | gui/launcher.cpp, gui/widgets/grid.* |
C | Reads packages/available.json; the launcher code is under #ifdef ANDROID_BACKEND; Get/Update band labels and an Update tray button |
All 35 are by BarefootBetters except #18.
The first pass’s “check per commit” rows, resolved
| File | Commits | Resolved to |
|---|---|---|
backends/platform/android/android.cpp |
99d611a9d8, d6d14e7500, b32a14a8e5 (C); 75c9b31b34 (U4) |
Split by commit |
ScummVMActivity.java |
70a3ba0a5c, d5f1731778 |
C: both only add TestFeatures hooks |
TestFeatures.java (both copies) |
70a3ba0a5c, 907aec1758 |
C: the test-build feature switch and its release stub |
base/commandLine.cpp |
a833b2d76e |
U2: the gui_dpad_focus default |
common/zip-set.* |
4bb4c523a2 |
U6 |
gui/ThemeEngine.* |
2e0ab83a01 (U2); ff83c9d4ca (C) |
Split by commit |
gui/ThemeParser.cpp |
ff83c9d4ca |
C |
Corrections to the first pass
gui/themes/**is not Classics. Every change there is the Control tab’s layout in ScummVM’s four standard themes and the files regenerated from it (U5). The TV theme isn’t in the fork.gui/widgets/grid.*is split: keyboard navigation (U3) and the upstream cherry-pick (A) on one side; the theme hooks and Get tiles (C) on the other.gui/gui-manager.*holds U1 (from WP-104) as well as U2. WP-104 belongs on both sides: five commits Classics, two upstream.engines/dialogs.cppis split:app_name(C) and the in-game Control tab (U5).gui/about.cppandgui/launcher.cppare Classics, as the first pass said.
Files with commits from more than one bucket
Phase C reverts these hunk by hunk in reverse order, or restores them wholesale (see the note below). Later Classics commits sit on top of earlier upstream-candidate ones in the same lines.
| File | Commits, oldest first |
|---|---|
backends/platform/android/android.cpp |
99d611a9d8 C, d6d14e7500 C, b32a14a8e5 C, 75c9b31b34 U4 |
engines/dialogs.cpp |
eb33de26d4 C, 50324a7cbb U5 |
gui/ThemeEngine.cpp, gui/ThemeEngine.h |
2e0ab83a01 U2, ff83c9d4ca C |
gui/widgets/grid.cpp |
b07215ef99 U3, fda7a3d6f7 U3, ff83c9d4ca C, 33213e3fd4 C, 8c1a8da030 C, 5d07aa53c8 C |
gui/widgets/grid.h |
516b27b7d3 A, b07215ef99 U3, 33213e3fd4 C, 8c1a8da030 C, 5d07aa53c8 C |
Classics builds on the upstream candidates in grid.*: 8c1a8da030’s band
copies the focus look b07215ef99 gave the titles, and 5d07aa53c8 changes
openTrayAtSelected(), which fda7a3d6f7 made the Return key call. That’s fine for classics, which
keeps both; it means the U3 branch has to be cut from upstream’s master,
not from classics.
Per-file table
61 files. Bucket letters as above.
| File | Bucket | Commits |
|---|---|---|
backends/platform/android/advanced/AndroidManifest.xml |
C | 70a3ba0a5c, 907aec1758 |
backends/platform/android/advanced/org/scummvm/scummvm/TestFeatures.java |
C | 70a3ba0a5c, 907aec1758 |
…/advanced/AdvancedMode.java |
C | 70a3ba0a5c, 907aec1758 |
…/advanced/AvailableList.java |
C | 907aec1758 |
…/advanced/FileList.java |
C | 79b2298822 |
…/advanced/InstallActivity.java |
C | 907aec1758 |
…/advanced/PackageManifest.java |
C | 70a3ba0a5c, 6c260eb0e0, 907aec1758 |
…/advanced/PackageStore.java |
C | 70a3ba0a5c, 6c260eb0e0, 791e70d424, 79b2298822, 7891d25887, 10c9f59912, c802dc7e6c, 1417181b81, 907aec1758 |
…/advanced/PackagesActivity.java |
C | 70a3ba0a5c, 6c260eb0e0, 791e70d424, 79b2298822, c802dc7e6c, 1417181b81, 907aec1758 |
…/advanced/Resume.java |
C | 791e70d424 |
…/advanced/ScummVMIni.java |
C | 70a3ba0a5c |
…/advanced/Space.java |
C | 6c260eb0e0 |
backends/platform/android/advanced-stub/org/scummvm/scummvm/TestFeatures.java |
C | 70a3ba0a5c, 907aec1758 |
backends/platform/android/android.cpp |
C + U4 | 99d611a9d8, d6d14e7500, b32a14a8e5 (C); 75c9b31b34 (U4) |
backends/platform/android/jni-android.cpp, .h |
C | d5f1731778 |
backends/platform/android/org/scummvm/scummvm/ScummVM.java |
C | d5f1731778 |
backends/platform/android/org/scummvm/scummvm/ScummVMActivity.java |
C | 70a3ba0a5c, d5f1731778 |
base/commandLine.cpp |
U2 | a833b2d76e |
common/zip-set.cpp, .h |
U6 | 4bb4c523a2 |
dists/android/AndroidManifest.xml |
C | 99d611a9d8 |
dists/android/build.gradle |
C | 99d611a9d8, 70a3ba0a5c, 1c625e57c9, 03f0d4edb9 |
engines/dialogs.cpp |
C + U5 | eb33de26d4 (C); 50324a7cbb (U5) |
gui/ThemeEngine.cpp, .h |
U2 + C | 2e0ab83a01 (U2); ff83c9d4ca (C) |
gui/ThemeParser.cpp |
C | ff83c9d4ca |
gui/about.cpp |
C | 7674026c8a |
gui/dialog.cpp |
U2 | 2e0ab83a01, a833b2d76e |
gui/dialog.h |
U2 | 2e0ab83a01 |
gui/editgamedialog.cpp |
U5 | 7ec11d9d8e, 50324a7cbb |
gui/editgamedialog.h |
U5 | 7ec11d9d8e |
gui/gui-manager.cpp |
U1 + U2 | 4208e10800, de5c7d9597 (U1); 1a987145d7 (U2) |
gui/gui-manager.h |
U2 | 1a987145d7 |
gui/launcher.cpp |
C | eb33de26d4, 5d07aa53c8 |
gui/options.cpp, .h |
U5 | 7ec11d9d8e, 50324a7cbb |
gui/saveload-dialog.cpp |
U2 | 2e0ab83a01 |
gui/themes/common/highres_layout.stx, lowres_layout.stx, scummclassic/classic_layout.stx, classic_layout_lowres.stx |
U5 | 7ec11d9d8e, 50324a7cbb |
gui/themes/default.inc, residualvm.zip, scummclassic.zip, scummmodern.zip, scummremastered.zip |
U5 | b29314d6d0, 0ed285a779 |
gui/widget.cpp, .h |
U2 | 2e0ab83a01 |
gui/widgets/edittext.*, list.*, popup.*, scrollcontainer.*, tab.* |
U2 | 2e0ab83a01 |
gui/widgets/grid.cpp |
U3 + C | b07215ef99, fda7a3d6f7 (U3); ff83c9d4ca, 33213e3fd4, 8c1a8da030, 5d07aa53c8 (C) |
gui/widgets/grid.h |
A + U3 + C | 516b27b7d3 (A); b07215ef99 (U3); 33213e3fd4, 8c1a8da030, 5d07aa53c8 (C) |
Notes for Phase C
- The engine-only tree is simple. With no engine hook and no commit that
mixes the engine with anything else, the engine-only
scooby-engineis the base’s tree plusengines/terraglyph/. Restoring the 61 files to2982fe324b(deleting the 13 the fork added) in one commit reaches that tree without replaying 35 reverts through the files above. Which way to do it is Phase C’s EC to decide. - Upstream has moved. A trial merge of the tip into
bc684bf6cb(git merge-tree, nothing written to a branch) conflicts only indists/android/build.gradleandgui/widgets/grid.h. Six upstream commits since the base touch the 61 files:fa8126a019(the cherry-pick’s original,grid.h),3e2bd60a34(widget.h,list.cpp),2d25e46e7d(base/commandLine.cpp),45ca8eec97andc245226f81(build.gradle), and735ad86c21(ScummVMActivity.java, pointer capture). - The cherry-pick (
516b27b7d3) disappears from the diff oncescooby-enginemerges upstream pastfa8126a019. - Open fork PRs at this run: only Mony’s
#12 (against
master). Carmen’s #77, #79 and #81 merged intocarmenon 2026-12-05.
Open questions for Jeff
- The three grid theme hooks (
ff83c9d4ca,33213e3fd4,8c1a8da030) are classified Classics: they’re optional and brand-free, but no theme ScummVM ships sets them, so upstream would get code no theme uses, and the play band is the TV library’s design. WP-135 wrote them so they could go upstream. Keep them Classics, or move them to the candidate list for a later offer with a theme that uses them? Answered (Jeff, 2026-12-05): they stay Classics. Revisit if another theme needs them or a general use appears. - U6 (
4bb4c523a2) changes where every port looks for icon and shader packs: anything matchinggui-icons*.datthatSearchManholds now loads. Brand-free and written upstream-ready, but it’s the one candidate that changes behaviour on platforms other than Android. Keep it on the list? Answered (Jeff, 2026-12-05): it stays a candidate, on conditions: a cross-platform regression test, proof that existing icon-pack loading is unchanged, a plain account of the general benefit, and upstream’s contribution and AI-authorship rules met. - Decision 4 (WP-144 §Decisions):
which units to offer and when. Already decided for part of it: WP-118 D6
was (a), offer the focus work upstream after it ships here (U2, U3, U4).
WP-123 deferred U5 to the same call. Any offer goes through the
authorship question in the
upstream decision brief:
upstream’s
AI-GUIDELINES.mdsays code “MUST NOT be authored by an AI agent”, and these commits came from AI sessions (nine of the thirteen carry noCo-Authored-Bytrailer, but were written the same way). Answered (Jeff, 2026-12-05): no submission until the split is validated (Phase C, then Phase D). Then each unit is weighed on its own, and the AI-authorship requirement is settled before any is sent. The commit already upstream is left out of every offer.