{
  "added_at": "2026-10-28",
  "additional_evidence_urls": [
    "https://github.com/some100/th07/blob/4878bf0e42a9280ef44735eb0517d4fda7cb6e04/CONTRIBUTING.md",
    "https://github.com/some100/th07/blob/4878bf0e42a9280ef44735eb0517d4fda7cb6e04/reccmp-project.yml",
    "https://github.com/some100/th07/blob/4878bf0e42a9280ef44735eb0517d4fda7cb6e04/resources/progress.svg",
    "https://github.com/some100/th07/blob/4878bf0e42a9280ef44735eb0517d4fda7cb6e04/resources/custom/progress.svg",
    "https://github.com/some100/th07/blob/4878bf0e42a9280ef44735eb0517d4fda7cb6e04/scripts/download_deps.py",
    "https://github.com/some100/th07/blob/4878bf0e42a9280ef44735eb0517d4fda7cb6e04/scripts/build.py",
    "https://github.com/some100/th07/tree/4878bf0e42a9280ef44735eb0517d4fda7cb6e04/resources/csv",
    "https://github.com/some100/th07/blob/4878bf0e42a9280ef44735eb0517d4fda7cb6e04/LICENSE"
  ],
  "category": "reconstruction-cases",
  "description_en": "Reconstructs C++ source for the Windows executable of Touhou 7: Perfect Cherry Blossom 1.00b and its custom.exe configuration tool, built with the original Visual Studio .NET 2002 and DirectX 8 toolchain and compared function by function with the user’s originals through reccmp. The committed progress badges report th07.exe fully implemented at 99.78% accuracy and custom.exe fully matched. The README says the game should be fully playable, but a matching build trips the game’s integrity check, and the cross-platform ports live on separate branches.",
  "description_zh": "为 Touhou 7：东方妖妖梦 1.00b 版的 Windows 可执行文件及其 custom.exe 设置工具重建 C++ 源码，使用原版 Visual Studio .NET 2002 与 DirectX 8 工具链构建，并通过 reccmp 与使用者自备的原程序逐函数比较。仓库内的进度徽章报告 th07.exe 已全部实现、准确率 99.78%，custom.exe 已完全匹配。README 称游戏应可完整游玩，但匹配构建会触发游戏自身的完整性检查；跨平台移植位于其他分支。",
  "entry_url": "https://awesomerea.org/resources/th07-decomp-case/",
  "entry_url_zh": "https://awesomerea.org/zh/resources/th07-decomp-case/",
  "evidence_url": "https://github.com/some100/th07/blob/4878bf0e42a9280ef44735eb0517d4fda7cb6e04/README.md",
  "group": "cases",
  "id": "th07-decomp-case",
  "json_url": "https://awesomerea.org/resources/th07-decomp-case/record.json",
  "kind": "case-study",
  "markdown_url": "https://awesomerea.org/resources/th07-decomp-case/index.md",
  "markdown_url_zh": "https://awesomerea.org/zh/resources/th07-decomp-case/index.md",
  "name": "Touhou 7: reconstructing Perfect Cherry Blossom 1.00b source",
  "name_zh": "Touhou 7：重建东方妖妖梦 1.00b 版源码",
  "reconstruction_method": "matching-decompilation",
  "record_type": "resource",
  "relationship": "independent-reconstruction",
  "requirements": [
    "README calls this a work-in-progress matching decompilation of th07.exe 1.00b and custom.exe; the committed, mutable badges report 694 of 694 th07.exe functions implemented at 99.78% accuracy, and custom.exe at 100% for both. Behaviour is meant to match the original but may differ. The portable and reallyportable branches (desktop, mobile and web ports) are separate. README credits the GensokyoClub th06 and th08 decompilations for shared types, names and code.",
    "Supply your own th07.exe 1.00b (README gives its MD5, reccmp-project.yml its SHA-256), copied to resources/, for icon extraction and as reccmp’s comparison base; custom.exe is needed only for the configuration tool, and --no-icon builds without either. No game executable or game data files are committed; resources/csv holds the function, global, string and float tables reccmp uses.",
    "This branch builds only for 32-bit Windows with the MSVC 2002 toolchain, run under Wine on Linux, and needs uv and ninja. scripts/download_deps.py fetches Visual Studio .NET 2002 and the DirectX 8 SDK from archive.org and EstexNT’s var_order compiler patch from a gist; scripts/build.py generates and runs the ninja build.",
    "Contributors diff with reccmp, which reports per-function accuracy against the original as an HTML page or for one address. Because th07.exe is not yet byte-identical, README says a matching build fails the game’s integrity check and crashes after 3,999 Supervisor cycles; --no-matching disables that check. The repository has no CI; badge figures are project-generated.",
    "CC0 1.0 for the repository; the game and the downloaded Microsoft toolchain and SDK keep their own terms. resources/svgicon.png, embedded in the progress badge, is the game’s cover artwork marked © 2003 Team Shanghai Alice, which the CC0 dedication does not cover."
  ],
  "requirements_zh": [
    "README 称这是 th07.exe 1.00b 与 custom.exe 的进行中匹配反编译；仓库内可变的徽章报告 th07.exe 的 694 个函数已全部实现、准确率 99.78%，custom.exe 两项均为 100%。行为力求与原版一致，但可能存在差异。portable 和 reallyportable 分支（桌面、移动端和网页移植）是独立分支。README 致谢 GensokyoClub 的 th06 与 th08 反编译项目，借用了共享的类型、命名和代码。",
    "需自备 th07.exe 1.00b（README 给出 MD5，reccmp-project.yml 给出 SHA-256）并复制到 resources/，用于提取图标并作为 reccmp 的比较基准；custom.exe 仅在构建设置工具时需要，使用 --no-icon 可在两者都缺失时构建。仓库未提交游戏可执行文件或游戏数据文件；resources/csv 存放 reccmp 使用的函数、全局变量、字符串和浮点数表。",
    "此分支只能以 MSVC 2002 工具链构建 32 位 Windows 程序，Linux 上通过 Wine 运行，并需要 uv 和 ninja。scripts/download_deps.py 从 archive.org 获取 Visual Studio .NET 2002 和 DirectX 8 SDK，并从 gist 获取 EstexNT 的 var_order 编译器补丁；scripts/build.py 生成并运行 ninja 构建。",
    "贡献者使用 reccmp 比较差异，它以 HTML 页面或针对单个地址给出相对原程序的逐函数准确率。由于 th07.exe 尚未逐字节一致，README 称匹配构建无法通过游戏的完整性检查，并会在 3,999 个 Supervisor 周期后崩溃；--no-matching 会禁用该检查。仓库没有 CI；徽章数字由项目生成。",
    "仓库以 CC0 1.0 释出；游戏及下载的 Microsoft 工具链和 SDK 各有条款。嵌入进度徽章的 resources/svgicon.png 是游戏封面图，标有 © 2003 上海爱丽丝幻乐团，CC0 声明并不涵盖它。"
  ],
  "targets": [
    "game"
  ],
  "url": "https://github.com/some100/th07",
  "verification": "source-reviewed",
  "verified_at": "2026-10-19"
}
