{
  "added_at": "2026-10-18",
  "additional_evidence_urls": [
    "https://github.com/portingpete/The-Darkness-Recomp/blob/98f0bcd49dfee90dfee968a3b75fd40e892c91e7/START_HERE.txt",
    "https://github.com/portingpete/The-Darkness-Recomp/blob/98f0bcd49dfee90dfee968a3b75fd40e892c91e7/config/darkness.toml",
    "https://github.com/portingpete/The-Darkness-Recomp/blob/98f0bcd49dfee90dfee968a3b75fd40e892c91e7/config/game_revisions.toml",
    "https://github.com/portingpete/The-Darkness-Recomp/blob/98f0bcd49dfee90dfee968a3b75fd40e892c91e7/tools/patches/README.md",
    "https://github.com/portingpete/The-Darkness-Recomp/blob/98f0bcd49dfee90dfee968a3b75fd40e892c91e7/tools/setup_generator.py",
    "https://github.com/portingpete/The-Darkness-Recomp/blob/98f0bcd49dfee90dfee968a3b75fd40e892c91e7/tools/build.ps1",
    "https://github.com/portingpete/The-Darkness-Recomp/blob/98f0bcd49dfee90dfee968a3b75fd40e892c91e7/RENDERING.md",
    "https://github.com/portingpete/The-Darkness-Recomp/blob/98f0bcd49dfee90dfee968a3b75fd40e892c91e7/STEAM_DECK.md",
    "https://github.com/portingpete/The-Darkness-Recomp/blob/98f0bcd49dfee90dfee968a3b75fd40e892c91e7/COPYING"
  ],
  "category": "reconstruction-cases",
  "description_en": "Builds a native Windows x64 port of The Darkness by translating its Xbox 360 executable to C++ ahead of time with a patched XenonRecomp. A D3D11 renderer draws from the engine’s original geometry, shader sources and device state instead of interpreting console GPU packets. Gameplay coverage and Linux results are project-reported, and the author discloses OpenAI Codex assistance.",
  "description_zh": "使用打过补丁的 XenonRecomp 将 Xbox 360 可执行文件提前转换为 C++，构建 The Darkness 的原生 Windows x64 移植。D3D11 渲染器直接使用引擎原有的几何数据、着色器源码和设备状态绘制，而不解释主机 GPU 命令包。游戏覆盖范围与 Linux 测试结果均为项目报告，作者披露开发中使用了 OpenAI Codex 辅助。",
  "entry_url": "https://awesomerea.org/resources/the-darkness-recomp-case/",
  "entry_url_zh": "https://awesomerea.org/zh/resources/the-darkness-recomp-case/",
  "evidence_url": "https://github.com/portingpete/The-Darkness-Recomp/blob/98f0bcd49dfee90dfee968a3b75fd40e892c91e7/README.md",
  "group": "cases",
  "id": "the-darkness-recomp-case",
  "json_url": "https://awesomerea.org/resources/the-darkness-recomp-case/record.json",
  "kind": "case-study",
  "markdown_url": "https://awesomerea.org/resources/the-darkness-recomp-case/index.md",
  "markdown_url_zh": "https://awesomerea.org/zh/resources/the-darkness-recomp-case/index.md",
  "name": "The Darkness Recomp: an Xbox 360 static recompilation with a native D3D11 renderer",
  "name_zh": "The Darkness Recomp：配有原生 D3D11 渲染器的 Xbox 360 静态重编译",
  "reconstruction_method": "static-recompilation",
  "record_type": "resource",
  "relationship": "independent-reconstruction",
  "requirement_facets": [
    "prerequisites",
    "prerequisites",
    "limits",
    "testing",
    "license"
  ],
  "requirements": [
    "Requires the user’s extracted Xbox 360 dump: the original encrypted default.xex plus Content, System and the other dump folders. An ISO alone is not accepted, and the repository includes no game code, assets or generated translation output. The runtime decodes default.xex in memory and accepts only the approved original disc revision and Russian localization by SHA-256; title updates and other Xbox games need their own verified translation.",
    "Playing the release needs 64-bit Windows 10/11 with a Direct3D 11 device. Source builds need Git, Visual Studio 2022 with ClangCL, CMake 3.24+, Python 3.11+, MSYS2 MinGW64 tools, standalone LLVM and about 15 GB. The build fetches hedge-dev/XenonRecomp at c5bfd90d and applies the bundled Darkness and correction patches before generating the translation.",
    "The README reports full gameplay with mouse/controller input, XMA audio, saves, local achievements and added video and remapping menus; Xbox Live synchronization is unavailable. Under Proton in WSL2, the opening level rendered with audio, but camera movement and tutorial completion were not confirmed; Steam Deck remains unverified and there is no native Linux build.",
    "The build runs a CTest suite of native and contract tests, and the updater re-tests builds and checks packaged files with SHA-256. These are project checks of the port.",
    "GPLv3 per COPYING, matching UnleashedRecomp/XenonRecomp; the generator patches are GPLv3, SMAA and the CC0 Xelu prompt icons keep their own terms, and the game retains separate rights. This is static recompilation, not recovered authored source. The README states that development includes OpenAI Codex assistance."
  ],
  "requirements_zh": [
    "需使用者自备已解包的 Xbox 360 游戏转储：原始加密的 default.xex，以及 Content、System 等全部转储目录。仅有 ISO 不可用；仓库不含游戏代码、素材或生成的转换产物。运行时在内存中解码 default.xex，并只接受经 SHA-256 核准的原版光盘版本和俄语本地化版本；游戏更新补丁和其他 Xbox 游戏都需要各自经过验证的转换。",
    "运行发布版需 64 位 Windows 10／11 及支持 Direct3D 11 的显卡。从源码构建需 Git、带 ClangCL 的 Visual Studio 2022、CMake 3.24+、Python 3.11+、MSYS2 MinGW64 工具、独立安装的 LLVM，以及约 15 GB 空间。构建会获取 c5bfd90d 版本的 hedge-dev/XenonRecomp，并在生成转换代码前应用随附的 Darkness 补丁和修正补丁。",
    "README 报告可完整游玩，支持鼠标／手柄输入、XMA 音频、存档、本地成就，并新增视频设置与按键重映射菜单；Xbox Live 同步不可用。在 WSL2 中通过 Proton 运行时，开场关卡可带声音渲染，但镜头移动和完成教程尚未确认；Steam Deck 仍未验证，也没有原生 Linux 构建。",
    "构建会运行由原生测试与契约测试组成的 CTest 套件，更新程序也会重新测试构建，并用 SHA-256 校验打包文件。这些是项目对移植版本的检查。",
    "依 COPYING 采用 GPLv3，与 UnleashedRecomp／XenonRecomp 一致；生成器补丁同为 GPLv3，SMAA 和 CC0 授权的 Xelu 按键图标保留各自条款，游戏本身另有权利约束。这是静态重编译，并非恢复原作者编写的源码。README 说明开发过程使用了 OpenAI Codex 辅助。"
  ],
  "targets": [
    "game"
  ],
  "url": "https://github.com/portingpete/The-Darkness-Recomp",
  "verification": "source-reviewed",
  "verified_at": "2026-10-18"
}
