WP-010: ScummVM fork + empty engines/scooby/ scaffold

Status: ✅ Done (2026-11-13) Phase: Pre-Work (before Phase 2; benefits Phase 1) Depends on: — Companion EC: EC-005 Estimated effort: Half-day Pre-flight: pre-flight-WP-010-2026-11-13


Result (2026-11-13)

Exit criterion Result
1. Fork exists ✅ barefootbetters/scummvm, forked from scummvm/scummvm
2. Clone on scooby-engine ✅ At C:\dev\scummvm (deviation below), branch scooby-engine, remotes origin and upstream. Two commits on the pin, touching only engines/scooby/ (12 files).
3. Builds with scooby enabled ✅ --disable-all-engines --enable-engine=scooby: 0 errors and no warnings in engines/scooby/. scummvm.exe --list-engines shows scooby.
4. Builds with scooby disabled ✅ --disable-engine=scooby, default engine set: 0 errors. 97 engines listed, without scooby. Only detection.o compiles, because detection is built for every engine by default.
5. Pin recorded ✅ c553503d9d433726b22b43b3a6a0a86fd00125e9 in 02-SCUMMVM-INTEGRATION
6. Debug channels ✅ resource, graphics, audio, script, input. --list-debugflags=scooby lists all five.

Toolchain: MSYS2 UCRT64 (g++ 16.2.0, SDL2 2.32.10, GNU Make 4.4.1). Jeff chose it on 2026-11-13, and it stays the toolchain through Phase 5.

Deviations:

Upstream AI policy (found during this WP): at the pin, upstream ships AGENTS.md and AI-GUIDELINES.md. They require disclosure of AI assistance, no AI (co-)authorship of code, human-written commit and PR messages, and, for a whole-engine submission, a human primary maintainer who can maintain the engine without AI. A workflow (check-commit-authors.yml) closes PRs whose commits carry an AI Co-Authored-By: trailer, and both fork commits carry one. This bears on Phase 5, not on this WP. It is recorded in integration §12 as an open decision for Jeff.


Goal

Fork scummvm/scummvm to barefootbetters/scummvm, create an empty-but-compilable engines/scooby/ skeleton, record the HEAD commit hash in docs/02-SCUMMVM-INTEGRATION.md, and define the debug channel names from §9. This pins the ScummVM API target before Phase 1 findings are translated into implementation decisions, and defines the debugging vocabulary before WP-001’s Ghidra annotations are written.

Background

docs/02-SCUMMVM-INTEGRATION.md currently reads “ScummVM version pin: TBD.” Every concrete API call and signature in that document is floating against an unspecified target. Pinning the commit hash now means:

This WP intentionally pulls forward a subset of Phase 2 scope. The Phase 2 WPs that implement actual engine behavior are unchanged — this only covers the structural setup that makes Phase 2 implementable.

Scope

In scope:

Out of scope:

Dependencies

Exit criteria

  1. barefootbetters/scummvm exists on GitHub, forked from scummvm/scummvm.
  2. Local clone at C:\www\scummvm\ on a scooby-engine branch (not master — keeps the PR delta clean when the time comes).
  3. ./configure --enable-engine=scooby && make succeeds with zero errors.
  4. ./configure --disable-engine=scooby && make also succeeds cleanly.
  5. HEAD commit hash of scummvm/scummvm at fork time recorded in docs/02-SCUMMVM-INTEGRATION.md header field “ScummVM version pin.”
  6. Debug channel names defined in scooby.cpp constructor via DebugMan.addDebugChannel() — even if they emit nothing yet.

Deliverables

Notes