最近推送 2026-11-09 04:52(24 天前),属于活跃维护
jhaizhou-ops/d2r-mobile
GITHUB中文整理主语言 C · 5,229 星 · MIT · 创建于 2026-10-12
一个开源兼容层,让用户把自己购买的《暗黑破坏神 II:狱火重生》Switch 版连同术士君临资料片,原生运行在 iPhone、iPad、Mac、Android 和鸿蒙设备上。
仓库健康度
5 个维度开放 Issue 71 个 · Fork 1,320 个
24 小时 +0 · 7 日 +0 · 30 日 +199
许可证 MIT · 12 个 topics
这一项暂无数据,不代表项目没有发布
「证据不足」表示这项数据暂时没有取到,不能读成「项目有问题」;「部分数据」表示只拿到一部分信号。版本发布要额外调 Releases 接口,下一版补。
Star 趋势
37 天记录横轴 2026-10-28 → 2026-12-03,纵轴按这段时间的最小/最大值拉伸。趋势来自站内每天记录一次的星数,页面打开时不会实时请求 GitHub。
它解决什么问题
据 README 归纳Switch 版游戏无法直接在手机、平板和电脑上运行,玩家想在移动或桌面设备上继续玩自己已经买下的游戏,就需要有人把 Switch 版本适配到这些平台,并重建触屏操作与性能表现。
核心能力
6 条- 1原生运行 Switch 版游戏程序,保留原作玩法
- 2重做全套触屏操作,适配移动设备日常游玩
- 3提供 Apple silicon Mac 原生版本,可用键盘、鼠标和手柄
- 4从主菜单进入游戏的过程很快
- 5按游戏版本分组规则表,便于适配不同版本
- 6面向日常游玩打磨,覆盖从创建角色到终局内容
项目画像
6 个角度项目定位
一个开源兼容层,让用户把自己购买的《暗黑破坏神 II:狱火重生》Switch 版连同术士君临资料片,原生运行在 iPhone、iPad、Mac、Android 和鸿蒙设备上。
适合谁
已经购买 Switch 版《暗黑破坏神 II:狱火重生》并含术士君临资料片、希望在 iPhone、iPad、Mac、Android 或鸿蒙设备上游玩的玩家。
典型场景
在 iPhone 或 iPad 上用触屏玩自己购买的 Switch 版游戏及资料片;在 Apple silicon Mac 上双击启动,用键盘、鼠标或手柄游玩;在 Android 或鸿蒙手机上通过社区移植版本运行同一套游戏文件。
部署难度
需先准备 Switch 版游戏文件并按文档整理,再按设备选择对应构建;Apple 设备涉及签名,免费 Apple ID 每 7 天需重签重装,鸿蒙版需自行重签名,整体步骤偏多。
风险限制
需要自备已购买并更新到 1.0.34.0 的 Switch 版游戏文件及资料片;不支持的版本未经官方验证;部分平台为社区移植,鸿蒙版需自行重签名;免费 Apple ID 每 7 天需重签且无 iCloud 存档同步。
最近维护
最近一次推送是 2026-11-09 04:52。 实现方式:通过兼容层让 Switch 版原始游戏程序在目标设备上原生运行,并重建触屏等输入方式;规则表按游戏版本的构建 ID 分组,默认工具只接受 1.0.34.0 版本。
README 原文细节
4 个板块怎么安装从零跑起来的步骤
Getting started
Whatever device you play on, you start with the files of the game you bought: the Switch release of Diablo II: Resurrected plus the Reign of the Warlock expansion, updated to 1.0.34.0 (the version the console shows; it corresponds to PC version 3.3.94012, and the directory names and tools in this repository use the latter number). This project is built for the version with that expansion; using it without the expansion is not supported and has not been verified. How to prepare them is in docs/GAMEFILES.md.
This project is implemented and verified on the Switch release 1.0.34.0 (which corresponds to PC version 3.3.94012), and by default the tools accept only that version. Community users have reported adapting other versions on their own by following the structure of this repository, and running them successfully. The rule tables are grouped by game version (in dm/tools/patchnso.py, keyed by the build ID of the main program); you are welcome to contribute the version you adapted.
Check your device first and find your section in the table below; the "Which devices are supported" table above tells you which build to use on Apple devices and whether you also need a Legacy Device Pack.
The Apple account used for signing: a paid developer account gives you everything; a free Apple ID works too (no iCloud save sync, and the app has to be re-signed and reinstalled every 7 days). The full list of dependencies is in docs/DEPENDENCIES.md.
- iPhone / iPad, with an Apple silicon Mac — A full build from source — "With a Mac: three steps" below
- iPhone / iPad, without a Mac — Download a shell with no game content and add your game content on Windows / Linux — "Without a Mac" below and docs/NOXCODE.md
- Mac (Apple silicon) — Build a native macOS App — "Playing directly on a Mac" below and docs/MAC.md
- Android phone — Install the release page's APK and copy an import pack made on a computer to the phone — "Android" below and docs/ANDROID.md
- HarmonyOS phone — Re-sign the unsigned shell from the Releases page with your own debug certificate, make a runtime pack on a computer and copy it to the phone — "HarmonyOS" below and docs/HARMONYOS.m
- Computer — An Apple silicon Mac with Xcode installed — Windows / Linux / a Mac without Xcode
- Method — A full build from source — Download a "shell" with no game content, use the packaging tool to add your own game content, then install it with a sideloading tool
- Status — The main route; everything above comes from it — Works end to end on Windows, from making the package to playing on a device, and the game program produced on the two systems is byte-for-byte
- Instructions — The three steps below — docs/NOXCODE.md
实现原理它内部是怎么做的
How it works
Why you can trust it: the stability is not luck. The test and verification tooling is part of the project — unit tests for the host and graphics layers, an equivalence check for every rewritten instruction, scripted walkthrough regression for the touch interface, and on-device smoke tests. Start with make -C dm/host/tests run, make -C dm/gfx/tests run and dm/verify/regress.sh (run them inside the Python environment prepared in step 2 below; regress.sh also needs brew install llvm). How to contribute is in CONTRIBUTING.md.
- Program rewriter — dm/tools/patchnso.py — Rewrites only the few instructions that cannot run unchanged under Apple's kernel (thread-pointer registers, system calls, timers) and leaves the rest of the
- Host — dm/host — Loads the rewritten program and provides the platform services it calls
- Graphics — dm/gfx — Implements the game's graphics API on Metal; shaders are translated offline from the game's originals
- iOS app — dm/ios — The app shell, touch controls and interface
- Android app — dm/android — The Android shell, touch overlay and Vulkan presentation
- HarmonyOS app — dm/harmony — The HarmonyOS shell (ArkTS + N-API), sharing the host and the Vulkan engine with Android
- Vulkan graphics — dm/gfx/vulkan — The same graphics API on Vulkan (shared by Android and HarmonyOS; the engine comes from the HarmonyOS port)
- Verification — dm/verify — Checks that the rewritten code behaves exactly like the original, plus the regression gates every change goes through
限制与常见问题项目自己写明的坑与限制
Known limitations
- Online play — Out of scope; fully offline
- Android version — A few iOS touch details (empty-skill-slot menu, stat-point overlay, the item image that follows your finger in a shop) are unfinished; see "Android" above
- .nsp / .xci game packages — The tools only check the version of the main program and do not distinguish package formats; we ran the whole path with an .xci ourselves, and users have reported that .nsp
- Signing and installing with a sideloading tool (Sideloadly, AltStore and the like) — Not verified; open an issue and tell us how it went
- Making the package on Linux — Not verified (verified on Windows and Mac)
- Devices that have not moved to iOS 26 / macOS 26 — Playable with the older-API build (minimum iOS 18.0 / macOS 15.0): docs/OLDERSYSTEMS.md; the full device table is under "Which devices are supported"
- A16 and earlier devices (iPhone 14 family, iPhone 15 / 15 Plus and so on) — Playable; they need a Legacy Device Pack and an App built with it: docs/LEGACYDEVICES.md. "One More Step for This Device" (o
- The "one-line verdict" and "legacy Chinese name" entries in item notes — These two content tables are not shipped with the repository; you can supply your own, see dm/ios/tools/annot/README.md
其它说明README 里剩下的内容
What it is, and what it is not
- The game's own aarch64 program, executing directly on the device, with no emulated CPU. iPhone and Switch use the same class of processor; only the handful of instructions that cannot run unchanged un
- The platform services the game expects — system calls, the file system, the graphics API, audio, input — provided by a small host written for Apple platforms. The graphics API is reimplemented entirel
- A port built for phones, and taken all the way: a complete touch control scheme, edge-to-edge iPhone and true full-screen iPad display, controller support, a power saver mode, save sync, six languages
- An emulator, cloud gaming, or streaming.
- A source of game content. It contains none and distributes none. There is no game program, art, text, data table or shader in this repository; all of that is generated on your own machine from your ow
- Online. There is no multiplayer; the game runs fully offline and needs no online account.
Battle-tested
All 44 iPhones and iPads in the closed beta — 35 devices registered for direct install (25 iPhones and 10 iPads), plus 9 TestFlight accounts with one device each — completed Normal, Nightmare and Hell with multiple characters, and the experience was excellent. From an iPhone 14 Pro Max with 6 GB of memory to the latest iPad Pro, not one device fell behind.
- iPhone — 14 Pro Max, 15, 15 Pro, 15 Pro Max, 16 Plus, 16 Pro, 16 Pro Max, 17 Pro Max and more
- iPad — iPad Air, iPad mini, iPad Pro 11-inch and 12.9 / 13-inch (including M2 and M4) and more
- Lowest model tested — iPhone 14 Pro Max (A16, 6 GB): a flawless 60 fps
Fast, smooth, and easy on the battery
Measurement conditions: power is whole-device power measured on 2026-10-10 on an iPhone 17 Pro Max, standing in the Act I camp at 50% brightness, with 60 fps and power saver mode measured in the same scene; battery life is calculated from the measured power and the battery capacity, not by playing from full to empty. Launch and game-entry times were measured on the same model in 2026-10; frame rate and act-change readings were taken on the same model on 2026-10-12 while moving through areas and changing acts after entering a game.
The install package is only a little over 100 MB. The game resources (about 5.6 GB) are placed on the phone separately, and updating the app touches neither your saves nor the resources.
Why it is this fast: the program executes natively, and not a single instruction goes through emulation; graphics go straight to Metal; every shader is translated offline and compiled ahead of time, so nothing is compiled when you enter a new scene. Older chips (A16 and earlier, such as the iPhone 14 family and iPhone 15) do not support the game's original compressed texture format; they need an extra texture pack made from your own game files, and then run at full frame rate too — see docs/LEGACYDEVICES.md.
- In-game frame rate — 60 fps, steady, with no drops once the device warms up
- App launch — 0.15 s
- To the main menu — about 1 s
- From the main menu into a game — about 1 s
- Quick Restart, back in a game — about 1.2 s
- Longest frame when changing acts — about 0.1 s
- Whole-device power, 60 fps — about 3.8 W (in camp, 50% brightness): nearly 5 hours of continuous play on a full charge
- Whole-device power, power saver mode at 30 fps — about 1.85 W, about half the 60 fps figure, for about twice the battery life
关于 d2r-mobile 的常见问题
7 个问题d2r-mobile 是做什么的?
一个开源兼容层,让用户把自己购买的《暗黑破坏神 II:狱火重生》Switch 版连同术士君临资料片,原生运行在 iPhone、iPad、Mac、Android 和鸿蒙设备上。 Switch 版游戏无法直接在手机、平板和电脑上运行,玩家想在移动或桌面设备上继续玩自己已经买下的游戏,就需要有人把 Switch 版本适配到这些平台,并重建触屏操作与性能表现。
d2r-mobile 有哪些功能?
核心能力:原生运行 Switch 版游戏程序,保留原作玩法;重做全套触屏操作,适配移动设备日常游玩;提供 Apple silicon Mac 原生版本,可用键盘、鼠标和手柄;从主菜单进入游戏的过程很快;按游戏版本分组规则表,便于适配不同版本;面向日常游玩打磨,覆盖从创建角色到终局内容。
d2r-mobile 适合谁用?
已经购买 Switch 版《暗黑破坏神 II:狱火重生》并含术士君临资料片、希望在 iPhone、iPad、Mac、Android 或鸿蒙设备上游玩的玩家。
d2r-mobile 是怎么工作的?
通过兼容层让 Switch 版原始游戏程序在目标设备上原生运行,并重建触屏等输入方式;规则表按游戏版本的构建 ID 分组,默认工具只接受 1.0.34.0 版本。
怎么安装 d2r-mobile?
按项目 README 的说明:iPhone / iPad, with an Apple silicon Mac — A full build from source — "With a Mac: three steps" below;iPhone / iPad, without a Mac — Download a shell with no game content and add your game content on Windows / Linux — "Without a Mac" below an;Mac (Apple silicon) — Build a native macOS App — "Playing directly on a Mac" below and docs/MAC.md;Android phone — Install the release page's APK and copy an import pack made on a computer to the phone — "Android" below and docs/ANDROID.md。完整命令见下方「怎么安装」一节或 GitHub 仓库的 README。
用 d2r-mobile 有什么门槛或限制?
需要自备已购买并更新到 1.0.34.0 的 Switch 版游戏文件及资料片;不支持的版本未经官方验证;部分平台为社区移植,鸿蒙版需自行重签名;免费 Apple ID 每 7 天需重签且无 iCloud 存档同步。
d2r-mobile 现在还在维护吗?数据怎么样?
目前 5,229 星,1,320 个 Fork,主语言 C,创建于 2026-10-12,最近一次推送 2026-11-09 04:52,许可证 MIT。星数、Fork、推送时间都是 GitHub 返回的实时数据,「最近推送」离现在越近说明越活跃;长期不动要留意是否已停止维护。
这些内容来自哪
读法说明项目数据取自 GitHub 官方接口与项目 README;星数、Fork、语言与时间以 GitHub 页面为准,档案更新于 2026-11-05 03:17。
