{
  "added_at": "2026-11-09",
  "category": "reconstruction-cases",
  "class": "game",
  "description_en": "This statically recompiles the DOS executable PRINCE.EXE from Prince of Persia 2 into C and links it with a Windows runtime. Game logic, rendering, the intro, and the music driver stay the original code. VGA, the timer, the keyboard, and Sound Blaster or AdLib are replaced. The launcher is PoP2 Launcher.exe.",
  "description_zh": "该项目把《波斯王子 2》的 DOS 可执行文件 PRINCE.EXE 静态重编译成 C，并链接一个 Windows 运行时。游戏逻辑、渲染、开场和音乐驱动保持原版代码。VGA、计时器、键盘以及 Sound Blaster 或 AdLib 被替换。启动器是 PoP2 Launcher.exe。",
  "entry_url": "https://awesomerea.org/resources/pop2-windows/",
  "entry_url_zh": "https://awesomerea.org/zh/resources/pop2-windows/",
  "evidence_class": 1,
  "evidence_status": "observed",
  "evidence_url": "https://github.com/Supermedo/prince-of-persia-2-windows/blob/e2c407fa8409ad891bf78c8e98c3e052dd00869b/README.md",
  "group": "cases",
  "id": "pop2-windows",
  "json_url": "https://awesomerea.org/resources/pop2-windows/record.json",
  "kind": "case-study",
  "markdown_url": "https://awesomerea.org/resources/pop2-windows/index.md",
  "markdown_url_zh": "https://awesomerea.org/zh/resources/pop2-windows/index.md",
  "name": "Prince of Persia 2: statically recompiling the DOS game for Windows",
  "name_zh": "Prince of Persia 2：将 DOS 游戏静态重编译到 Windows",
  "preview_kind": "image",
  "preview_url": "https://awesomerea.org/previews/pop2-windows.png",
  "reconstruction_method": "static-recompilation",
  "record_type": "resource",
  "relationship": "independent-reconstruction",
  "requirements": [
    "Clang, llvm-rc, and Python 3. Set POP2_GAMEDIR to the folder that contains PRINCE.EXE, run python recomp/recomp.py recomp/extra_entries.txt, then ./build.sh.",
    "The README does not name a license."
  ],
  "requirements_zh": [
    "需要 Clang、llvm-rc 和 Python 3。把 POP2_GAMEDIR 设为含有 PRINCE.EXE 的文件夹，运行 python recomp/recomp.py recomp/extra_entries.txt，然后运行 ./build.sh。",
    "README 没有写许可证。"
  ],
  "scope": "partial",
  "targets": [
    "game"
  ],
  "url": "https://github.com/Supermedo/prince-of-persia-2-windows",
  "verification": "source-reviewed",
  "verified_at": "2026-11-07"
}
