{
  "added_at": "2026-11-06",
  "additional_evidence_urls": [
    "https://github.com/jaenster/d2mac-linux/blob/313fa1c5b8c05c14f5aeebc05904fced222633d0/scripts/README.md",
    "https://github.com/jaenster/d2mac-linux/blob/313fa1c5b8c05c14f5aeebc05904fced222633d0/LICENSE"
  ],
  "category": "reconstruction-cases",
  "description_en": "d2mac-linux ports the Diablo II 1.14d Mac executable to 32-bit Linux by converting its i386 Mach-O container to ELF and reimplementing imported Darwin, Carbon and AGL interfaces in Zig. The shim translates graphics to GLX and adapts threading, files and sockets. The author reports that the game reaches its menu and character creation.",
  "description_zh": "d2mac-linux 将《Diablo II》1.14d Mac 版 i386 Mach-O 转为 ELF，并用 Zig 重写所需的 Darwin、Carbon 和 AGL 导入接口，使其移植到 32 位 Linux。兼容层将图形调用转为 GLX，并适配线程、文件与套接字；作者报告游戏可进入主菜单并创建角色。",
  "entry_url": "https://awesomerea.org/resources/d2mac-linux-case/",
  "entry_url_zh": "https://awesomerea.org/zh/resources/d2mac-linux-case/",
  "evidence_url": "https://github.com/jaenster/d2mac-linux/blob/313fa1c5b8c05c14f5aeebc05904fced222633d0/README.md",
  "group": "cases",
  "id": "d2mac-linux-case",
  "json_url": "https://awesomerea.org/resources/d2mac-linux-case/record.json",
  "kind": "case-study",
  "markdown_url": "https://awesomerea.org/resources/d2mac-linux-case/index.md",
  "markdown_url_zh": "https://awesomerea.org/zh/resources/d2mac-linux-case/index.md",
  "name": "d2mac-linux: porting the Diablo II Mac executable to 32-bit Linux",
  "name_zh": "d2mac-linux：将《Diablo II》Mac 可执行文件移植到 32 位 Linux",
  "reconstruction_method": "port",
  "record_type": "resource",
  "relationship": "independent-reconstruction",
  "requirement_facets": [
    "prerequisites",
    "prerequisites",
    "limits",
    "license"
  ],
  "requirements": [
    "A legitimate copy of the original Diablo II Mac client and its game data is required.",
    "Execution needs a 32-bit-capable Linux userland, Mesa GL and an X server.",
    "Right-click handling and sound remain unimplemented.",
    "MIT."
  ],
  "requirements_zh": [
    "需要合法取得的《Diablo II》原版 Mac 客户端及游戏数据。",
    "运行需要支持 32 位程序的 Linux 用户环境、Mesa GL 和 X 服务器。",
    "右键处理及声音尚未实现。",
    "MIT 许可证。"
  ],
  "targets": [
    "binary",
    "game"
  ],
  "url": "https://github.com/jaenster/d2mac-linux",
  "verification": "source-reviewed",
  "verified_at": "2026-11-06"
}
