# RE1 Director's Cut Decompilation Project ## What this project is A full, byte-for-byte matching decompilation of **Resident Evil: Director's Cut (US, PlayStation)**. "Matching" means: C source code that, when compiled with the same compiler and settings Capcom used, produces a program that is identical to the original, byte for byte. The proof is a checksum comparison of the rebuilt files against the original files, which come from a disc image verified byte-identical to the Redump dump of the retail disc the owner owns. ## Scope In scope now: - The main executable and every code overlay on the Director's Cut (US) disc. - Tools needed to get there: disc extraction, splitting, build system, verification scripts, a reader for the game's room script format. Out of scope for now (planned later, see `docs/ROADMAP.md`): - An accessibility mod (speech, audio cues, navigation). - A native PC port. - Other releases of RE1 (original 1996, Dual Shock version, PC, Saturn). - Resident Evil 2, Resident Evil 3, Dino Crisis. ## Ground rules in one paragraph No shortcuts. Nothing counts as done until it is verified by the tools, not by judgment. Every long run of work starts with a small tested pilot. Before trying to solve something new, check whether another decompilation project, decomp.me, or this project's own notes have already solved it. The full rules are in `CLAUDE.md`. ## Files - `CLAUDE.md`: the rules Claude Code follows in every session. Read first, every time. - `docs/PLAN.md`: phases, milestones, and the gate each phase must pass. - `docs/TESTING.md`: what "verified" means, and the checks required before, during, and after long stretches of work. - `docs/RESEARCH_FIRST.md`: how to learn from other projects and decomp.me before attempting anything. - `docs/TOOLCHAIN.md`: the tools, how they are chosen, and how versions are pinned. - `docs/DISC_ID.md`: how to identify and fingerprint the exact disc being matched. - `docs/ASSETS_AND_LEGAL.md`: what may and may not go in the repository. - `docs/KNOWLEDGE.md`: running notes on matching tricks, compiler behavior, and Capcom coding habits. - `docs/PROGRESS.md`: session log and measured progress. - `docs/DECISIONS.md`: decisions made, who made them, and why. - `docs/STUBBORN.md`: functions that resisted matching, what was tried, and what to try next. - `docs/ROADMAP.md`: what comes after RE1, and what to keep reusable for it. ## Who does what - **The owner** owns the project. The owner supplies the disc image, approves scope changes, new tools, and new libraries, and decides when a phase is complete. - **Claude Code** does the setup, research, decompiling, matching, testing, and documentation, following `CLAUDE.md`.