WP-012: Detection table with a per-entry generation flag

Status: ✅ Done (2026-11-14) Phase: 2 (ScummVM engine scaffold) Depends on: WP-010 ✅ (scaffold and pin), WP-005 ✅ (which titles are in scope), WP-006 ✅ (Phantom is Gen 1) Companion EC: none (inline checklist under Exit criteria) Estimated effort: Half-day Pre-flight: pre-flight-WP-012-2026-11-14


Result (2026-11-14)

Exit criterion Result
1. Each disc detected from its root ✅ Each ISO was mounted with Mount-DiskImage, and scummvm --detect --path=<root> named the right title: scooby:showdown, scooby:phantomknight, scooby:jinxsphinx, scooby:casefile1. Showdown and Phantom are also detected from \scooby\. Jinx from \Jinx\ and Case File #1 from \MUSEUM\ are not, because a signature file sits elsewhere on the disc.
2. Right generation, and the engine sees it ✅ Showdown and Phantom start and log Starting <id> (generation 1) on the resource channel, after the detector lists the three matched files with their MD5s. Jinx (2) and Case File #1 (3) stop at the unsupported-game dialog, before the engine is created.
3. No false positives ✅ No match on Case File #2, Case File #3, Activity Challenge, the tools/exes/casefile2/ cache, or C:\Windows\System32\drivers.
4. Builds ✅ Scooby-only build: 0 errors, 0 warnings. Build with scooby disabled: only engines/scooby/detection.o recompiles, it links, and scooby is not listed.
5. Fork diff ✅ git diff --name-only upstream/master...scooby-engine lists only engines/scooby/ files. The commit is 5a88016fea, pushed to scooby-engine.

Deviations:

Found in passing: ScoobyDoo.iso (Scooby-Doo! Activity Challenge, 2001) ships MMFW archives (BONUS.MMF, .MMA, .MMP, Bonus.mms, all starting MMFW) and INSTALL\HDINSTALL\Scooby.exe (794,624 bytes), alongside the IBS logo video. That is Jinx’s layout. The vision doc assumes it uses a different engine. It looks like the same lineage, which would make it a fifth candidate. Not classified here. WP-013 has since classified it: Gen 2, Jinx’s engine. Its detection entry is not part of this WP; it was added afterwards in fork commit 644305dddc (see WP-013 §Detection).


Goal

Fill the empty ADGameDescription table in the fork’s engines/scooby/ with one entry per in-scope title, each carrying the engine generation (1, 2 or 3). ScummVM should then recognise each disc from its files, and the engine should know at startup which format family it is running.

Background

WP-010 left detection_tables.h empty on purpose: entries need each release’s signature files, sizes and MD5s, and Phase 1 had to settle which titles share the engine first. That is now settled:

Integration §3 calls the generation flag the load-bearing piece. Phase 3 archive readers dispatch on it, so the table should not need restructuring when they arrive.

Scope

In scope (fork C:\dev\scummvm, branch scooby-engine, engines/scooby/ only):

In scope (this repo): integration §2 and §3, this WP, a pre-flight, and WORK_INDEX.

Out of scope:

Exit criteria

  1. Each in-scope disc, mounted from its ISO, is detected by scummvm --detect from the disc root, with the right title.
  2. Each entry carries the right generation: Showdown 1, Phantom 1, Jinx 2, Case File #1 3. The value reaches the engine (debug line).
  3. Case File #2, Case File #3 and an unrelated directory produce no match.
  4. Scooby-only build: no errors, no warnings in engines/scooby/. Build with scooby disabled still compiles detection.o.
  5. Fork diff touches only engines/scooby/.

Deliverables

Notes