EC-005: ScummVM fork + engines/scooby/ scaffold checklist
Paired WP: WP-010 Purpose: Step-by-step checklist for forking ScummVM, creating a compilable empty engine skeleton, and pinning the baseline commit hash.
The ScummVM build system on Windows has more moving parts than most projects —
correct module.mk entries, configure.engine syntax, and the
detection/engine compilation split all need to be right before a single line
of game code is written. This checklist executes them in an order that catches
each failure as early as possible.
Pre-flight
- Pre-flight verdict: READY — complete docs/reference/pre-flight and commit the filled-in copy before proceeding;
NOT READYblocks this session pre-flight-WP-010-2026-11-13. - Windows build toolchain installed — record which one: ____ MSYS2 UCRT64, g++ 16.2.0 (installed 2026-11-13, Jeff’s choice; kept through Phase 5).
- mingw-w64 (most common contributor path):
gcc --version - or MSVC:
cl /?
- mingw-w64 (most common contributor path):
- SDL2 development libraries present — confirm
sdl2-config --versionor SDL2 include pathmingw-w64-ucrt-x86_64-SDL2,sdl2-config --version2.32.10. - git installed and GitHub credentials configured:
git config user.email - ScummVM Windows build guide read (in
scummvm/scummvmrepo:doc/compiling/orREADME.md) No MSYS2 guide in the tree at the pin; built with configure/make from the UCRT64 shell. C:\www\scummvm\target directory does not yet exist (avoids clobber) Deviation: the clone isC:\dev\scummvm(code lives underC:\dev, D-24739).
Step 1 — Fork on GitHub (5 min)
- Navigate to
https://github.com/scummvm/scummvmFork made earlier on 2026-11-13. - Click Fork → owner:
barefootbetters, repo name:scummvm - Note the fork’s default branch name: ____ (likely
master)master. - Fork URL confirmed:
https://github.com/barefootbetters/scummvm
Step 2 — Clone fork + add upstream remote (5 min)
git clone https://github.com/barefootbetters/scummvm.git C:\www\scummvm
cd C:\www\scummvm
git remote add upstream https://github.com/scummvm/scummvm.git
git fetch upstream --no-tags
- Clone succeeded;
C:\www\scummvm\.gitexists AtC:\dev\scummvm. git remote -vshows bothorigin(fork) andupstream(scummvm/scummvm)upstreamis a blob-less partial clone.
Step 3 — Record upstream HEAD commit hash (5 min)
git rev-parse upstream/master
- Paste the full 40-character hash here: ____
c553503d9d433726b22b43b3a6a0a86fd00125e9. - Open
docs/02-SCUMMVM-INTEGRATION.md→ header field “ScummVM version pin” → replace TBD with this hash - Commit that single-line change:
git commit -am "docs: pin ScummVM upstream HEAD at fork time"Committed with the rest of the WP-010 doc changes.
Step 4 — Create working branch
git checkout -b scooby-engine
- Confirm active branch:
git branchshows* scooby-engine
Step 5 — Create engines/scooby/ skeleton files
Create the directory and all required files. Copy patterns from an existing
simple engine (e.g. engines/access/ or engines/agi/) for reference on
module.mk and configure.engine syntax. See
docs/02-SCUMMVM-INTEGRATION.md §10 for the
exact patterns required.
engines/scooby/directory created Bydevtools/create_engine(fork commit8214e448af), then shaped (12669217cf). 12 files.engines/scooby/configure.enginecreated withdefault_state = disabledadd_engine scooby … no …, depends onhighres 16bit.engines/scooby/module.mkcreated; lists all.cppfiles asMODULE_OBJS; includes$(MODULE)/detection.oin a separateDETECT_OBJSblockengines/scooby/scooby.hcreated —ScoobyEngine : Enginedeclarationengines/scooby/scooby.cppcreated —run()returnsCommon::kNoError;DebugMan.addDebugChannel()calls for:resource,graphics,audio,script,inputDeviation: at the pin channels are aDebugChannelDeftable returned bygetDebugChannels()in detection, notaddDebugChannel()calls; see integration §9.engines/scooby/detection.hcreated —ScoobyMetaEngineDetection : MetaEngineDetectiondeclarationAdvancedMetaEngineDetection<ADGameDescription>.engines/scooby/detection.cppcreated — emptyADGameDescriptiontable;getName()returns"scooby";getGameID()returns"scooby"Table indetection_tables.h; game idshowdown, no entries yet.engines/scooby/metaengine.hcreated —ScoobyMetaEngine : MetaEnginedeclarationengines/scooby/metaengine.cppcreated —hasFeature()returnsfalsefor all flags;instantiateEngine()returnsnew ScoobyEngine(syst, desc)createInstance()at the pin, notinstantiateEngine().engines/scooby/is added toengines/engines.mkorengines/module.mk(check how the parent list is structured in the target ScummVM version) Automatic: configure generatesengines/engines.mk(MODULES += engines/scooby).
Step 6 — First configure + build (time-box: 30 min per attempt)
cd C:\www\scummvm
./configure --enable-engine=scooby 2>&1 | tee configure-scooby.log
- Configure succeeds with no errors
- If configure fails: read
configure-scooby.log; most common issues:- Missing SDL2 path → add
--with-sdl-prefix=<path> - Missing zlib → install mingw-w64 zlib dev package
- Wrong toolchain → verify
CC=andCXX=environment variables
- Missing SDL2 path → add
- If configure fails: read
- Record configure flags used: ____
--disable-all-engines --enable-engine=scooby, out of tree.
make -j4 2>&1 | tee build-scooby.log
- Build succeeds; zero errors (warnings acceptable) 0 errors; 2 warnings, both upstream (
gob,halestorm), none inengines/scooby/.- If build fails: read
build-scooby.log; most common issues:module.mklists a.othat has no corresponding.cpp→ fix the filename- Missing
#includein stub → add the required ScummVM headers ScoobyEngineconstructor signature mismatch → checkengines/engine.hin the target version
- If build fails: read
- ScummVM binary created (e.g.
scummvm.exe)
Step 7 — Verify clean omission
./configure --disable-engine=scooby && make -j4
- Configure and build succeed with scooby disabled
--disable-engine=scooby, default engine set, 38 min. scooby.odoes not appear in the build output — engine is cleanly excluded Onlydetection.obuilds (detection for all engines is on by default at the pin).
Step 8 — Verify debug channels compile
./scummvm.exe --list-debug-flags 2>&1 | findstr scooby
(or grep scooby on the output if using a Unix shell under mingw)
- Output shows the 5 channels:
resource,graphics,audio,script,input--list-debugflags=scooby(the flag’s name at the pin). - If the channels don’t appear: verify
DebugMan.addDebugChannel()calls are in theScoobyEngineconstructor body, not a static initializer N/A.
Step 9 — Commit and push
git add engines/scooby/
git add engines/engines.mk # or wherever the engine list lives
git commit -m "engines/scooby: add empty compilable engine skeleton
Stub ScoobyEngine, MetaEngineDetection, and MetaEngine. Engine compiles
clean with --enable-engine=scooby and is absent with --disable-engine=scooby.
Debug channels registered: resource, graphics, audio, script, input.
default_state = disabled (ADGF_TESTING).
Co-authored-by: Copilot <[email protected]>"
git push -u origin scooby-engine
https://github.com/barefootbetters/scummvm/tree/scooby-engine/engines/scoobyshows all 9 files 12 files (template addsconsole.*,credits.pl,detection_tables.h;POTFILESremoved).
Step 10 — Update project docs
docs/02-SCUMMVM-INTEGRATION.md“ScummVM version pin” field confirmed populated (done in Step 3)docs/02-SCUMMVM-INTEGRATION.md§9 debug channel table verified against actual channel names inscooby.cpp— they must match exactly- WP-010 status updated to ✅ Done in
WORK_INDEX
Exit check
barefootbetters/scummvmfork exists on GitHubC:\www\scummvm\local clone onscooby-enginebranchC:\dev\scummvm.engines/scooby/skeleton: 9 files, all committed 12../configure --enable-engine=scooby && make→ clean build ✅./configure --disable-engine=scooby && make→ clean build ✅- Debug channels visible in
--list-debug-flagsoutput ✅ docs/02-SCUMMVM-INTEGRATION.mdversion pin populated ✅