[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-111360":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":9,"language":10,"languages":9,"totalLinesOfCode":9,"stars":11,"forks":12,"watchers":13,"openIssues":14,"contributorsCount":15,"subscribersCount":15,"size":15,"stars1d":16,"stars7d":17,"stars30d":18,"stars90d":15,"forks30d":15,"starsTrendScore":19,"compositeScore":20,"rankGlobal":9,"rankLanguage":9,"license":21,"archived":22,"fork":22,"defaultBranch":23,"hasWiki":22,"hasPages":22,"topics":24,"createdAt":9,"pushedAt":25,"updatedAt":26,"readmeContent":27,"aiSummary":28,"trendingCount":15,"starSnapshotCount":15,"syncStatus":29,"lastSyncTime":30,"discoverSource":31},111360,"diablo3-port","Desm0nt\u002Fdiablo3-port","Desm0nt","Diablo III (Switch) native ARM64 port to Android: HLE nn::, NVN to Vulkan (derived from d2r-mobile, MIT)",null,"C",115,5,6,9,0,3,24,60,19,66.33,"MIT License",false,"main",[],"2026-11-22 20:45:28","2026-11-23 18:47:39","# Diablo III Mobile\r\n\r\n**A native Android port of Diablo III: Eternal Collection for Nintendo Switch.** The game's own AArch64 program runs\r\ndirectly on the phone's CPU; a small host provides the Switch system services (HLE of the `nn::` SDK), and the NVN\r\ngraphics API is replayed on Vulkan. You bring the game: this repository contains no game content and no keys.\r\n\r\nРусский: [ниже](#по-русски).\r\n\r\n**Install:** step-by-step guide for players — [docs\u002FINSTALL.md](docs\u002FINSTALL.md) (English) ·\r\n[docs\u002FINSTALL.ru.md](docs\u002FINSTALL.ru.md) (по-русски). In short: dump your own game + update v1441792 (and, if you want\r\nanother language, its language-pack DLC) and `prod.keys`, put them into `put-game-files-here\u002F`, double-click `setup.bat`\r\n(or `bash setup.sh`), copy `work\u002FDiablo3Mobile` to the phone's `Download` folder and install the APK (build it with\r\n`build.bat`, see *Building*).\r\n\r\n> [!WARNING]\r\n> **Tested so far on one device: Snapdragon 8 Gen 3 \u002F Adreno 750 (Xiaomi 14 Ultra) with the bundled Mesa Turnip driver.**\r\n> **Devices with Mali (Exynos, Dimensity, Tensor), PowerVR and Xclipse GPUs have not been tested at all** — the engine has\r\n> fallbacks for them, but expect problems. If something goes wrong on your device, please\r\n> [open an issue](https:\u002F\u002Fgithub.com\u002FDesm0nt\u002Fdiablo3-port\u002Fissues) and **always attach the logs**: the whole folder\r\n> `Download\u002FDiablo3Mobile\u002Flogs\u002F` — `crash.txt` (written at the start after a crash), `boot.log` \u002F `boot.prev.log` and\r\n> `logcat.txt` \u002F `logcat.prev.txt` (written live, so they survive even when the system kills the game) — and name your\r\n> phone model and Android version. Without logs a report usually can't be acted on.\r\n\r\n## Screenshots\r\n\r\nCaptured on the phone (Xiaomi 14 Ultra, Adreno 750, Mesa Turnip 27) with the widescreen option on: the game renders\r\n2000×900 at the screen's 20:9 shape (wider view, nothing stretched; loading screens are stretched to fill the screen).\r\nThe counter in the top-left corner is the port's own FPS \u002F frame time \u002F GPU time overlay (it can be turned off). Game\r\ntext in Russian from the language-pack DLC; on-screen controls in the touch-friendly gamepad layout.\r\n\r\n| | |\r\n|---|---|\r\n| ![Loading screen, stretched to the whole screen](docs\u002Fimages\u002Floading.jpg) | ![Arrival in New Tristram](docs\u002Fimages\u002Fnew_tristram.jpg) |\r\n| ![Fight in New Tristram](docs\u002Fimages\u002Ftown_fight.jpg) | ![Skills on the Old Tristram Road](docs\u002Fimages\u002Froad_skills.jpg) |\r\n| ![Fight on the Old Tristram Road](docs\u002Fimages\u002Fcombat.jpg) | ![Inventory and paperdoll](docs\u002Fimages\u002Finventory.jpg) |\r\n| ![Quest journal](docs\u002Fimages\u002Fquest_journal.jpg) | ![Pause menu (gear button)](docs\u002Fimages\u002Fpause_menu.jpg) |\r\n\r\nThe gear button opens the pause menu (the game stops, as with the Switch HOME menu); *Game settings…* holds the port's\r\nown options:\r\n\r\n![Port settings](docs\u002Fimages\u002Fsettings.jpg)\r\n\r\n## What it is, and what it is not\r\n\r\n**It is:**\r\n\r\n- The original game code, **executing natively** on the phone — no emulated CPU, no JIT. Switch and Android phones\r\n  share the AArch64 instruction set; an offline rewriter (`dm\u002Ftools\u002Fpatch_nso.py`) changes only the few instructions\r\n  that cannot run unchanged on Linux (x18 use, TLS reads, system calls, counter reads) into calls to the host, and\r\n  `dm\u002Fverify\u002Fequiv.py` checks every rewritten site against the original instruction before you play.\r\n- An HLE host for the Horizon OS services Diablo III uses (SDK **8.2.0**: threads, memory with the VAMM address space,\r\n  file system, audio renderer, input, account, add-on content…), and an NVN (**API version 53**) → Vulkan recorder and\r\n  engine tuned for Adreno GPUs. The game's shaders are taken from its CPK archives and translated to SPIR-V offline on\r\n  your PC.\r\n- A phone port: touch controls designed for Diablo (floating move stick, touch-to-walk, skill buttons with the game's\r\n  own skill icons, menu gestures), game controllers, an optional **widescreen (Hor+)** mode, sharpening, a 30 \u002F 60 fps\r\n  limit, rumble, and the game's own languages through its language-pack DLC.\r\n\r\n**It is not:**\r\n\r\n- An emulator, cloud gaming or streaming.\r\n- **A source of game content.** There is no game program, data, shader, text, art or key in this repository, and the\r\n  APK contains none. You dump the game from a Switch you own and convert it on your PC\r\n  ([docs\u002Fd3\u002FGAME_FILES.md](docs\u002Fd3\u002FGAME_FILES.md)). What the repository knows about the game (patch addresses, structure\r\n  offsets, format descriptions…) is listed in [docs\u002Fd3\u002FDERIVED.md](docs\u002Fd3\u002FDERIVED.md).\r\n- Online. Battle.net, local wireless, amiibo and the shop answer like a console without a connection; the game takes its\r\n  offline branch (single player, local saves).\r\n- Affiliated with Blizzard Entertainment or Nintendo.\r\n\r\n## Current state\r\n\r\nTested on **Snapdragon 8 Gen 3 \u002F Adreno 750** (Xiaomi 14 Ultra) with Mesa Turnip v27.\r\n\r\n- Boot, the AUTOSAVE notice, the title screen, the main menu, hero creation and **Act 1 gameplay run at 60 fps** (the\r\n  game's own cap, as on the Switch); GPU time is about 10–11 ms per frame in Act 1 at the docked resolution.\r\n- Output: the Switch's **docked 1600×900** (or handheld 1280×720) render, shown as 16:9 with bars, stretched, or —\r\n  with the **widescreen** option — rendered in the screen's own shape (e.g. 2000×900 on a 20:9 phone) with a wider view at\r\n  the sides (Hor+), the HUD at the screen edges and the loading screens stretched to fit.\r\n- Input: a touch layout made for Diablo (left stick appears under the thumb, touch-and-hold the world to walk there,\r\n  double-tap to evade, skill buttons A \u002F B \u002F X \u002F Y \u002F R \u002F ZR, L = potion, a MENU mode with swipe \u002F tap gestures for the\r\n  console menus), a Joy-Con-like gamepad layout, Bluetooth \u002F USB controllers, rumble. Positions, size and opacity of the\r\n  on-screen controls can be edited.\r\n- Unified front end (shared with the DOOM Mobile port): a pause menu that really holds the game, gamepad skins\r\n  (nx2android's theme packs) and a layout editor, save export \u002F import, live docked \u002F handheld switching.\r\n- Port settings (gear button): menu and game language, game resolution (docked \u002F handheld), picture shape (bars \u002F\r\n  stretched \u002F widescreen), stretched loading screens, FSR RCAS sharpening, frame rate limit (30 \u002F 60), Vulkan driver,\r\n  vibration, FPS counter, stick dead-zone compensation, control layout and editing, skill icons on buttons, the gear\r\n  button's look.\r\n- Languages: English out of the box; other languages (e.g. Russian, index 10) need the game's language-pack DLC, which\r\n  setup extracts when you put it next to the game files.\r\n\r\n### Known issues\r\n\r\n- Only update **v1441792** (game patch 2.7.7) is supported; the patches and addresses are tied to its build id\r\n  (`main` 2607a74f…, `sdk` 3ae34e68…).\r\n- Only one device has been tested; other Snapdragon devices may work, other GPUs (Mali, PowerVR, Xclipse) are untested\r\n  (the engine has fallbacks for them, see *Other GPUs*).\r\n- The offline game cannot use online features (seasons, clans, Battle.net co-op).\r\n- Long sessions (heat, memory) and the later acts have seen less testing than Act 1. Reports are welcome.\r\n- Many renderer and host fixes are still behind switches for A\u002FB testing (`Download\u002FDiablo3Mobile\u002Fdm\u002Fenv`); see\r\n  [docs\u002Fd3\u002F](docs\u002Fd3\u002F).\r\n\r\n## Building\r\n\r\nRequirements: Android SDK with NDK r29 (29.0.14206865), CMake ≥ 3.22 and Ninja, JDK 17+ and Gradle, Python 3. Clone\r\nwith submodules:\r\n\r\n```sh\r\ngit clone --recursive \u003Cthis repository>\r\n# or, in an existing clone:\r\ngit submodule update --init --recursive\r\n```\r\n\r\nConfigure the native host for Diablo III (`DM_GAME=d3`; the default `d2r` builds the original D2R host):\r\n\r\n```sh\r\ncmake -S dm\u002Fandroid -B work\u002Fbuild-android -G Ninja \\\r\n  -DCMAKE_TOOLCHAIN_FILE=$ANDROID_NDK_HOME\u002Fbuild\u002Fcmake\u002Fandroid.toolchain.cmake \\\r\n  -DANDROID_ABI=arm64-v8a -DANDROID_PLATFORM=android-31 -DCMAKE_BUILD_TYPE=Release -DDM_GAME=d3\r\n```\r\n\r\nThen build, sign and (optionally) install the APK — `build.bat` on Windows (wraps the PowerShell script), `pwsh`\r\nelsewhere:\r\n\r\n```sh\r\nbuild.bat [-Install \u003Cadb serial>]                 # Windows\r\npwsh tools\u002Fbuild_apk.ps1 [-Install \u003Cadb serial>]  # Linux \u002F macOS with PowerShell\r\n```\r\n\r\nThe script reads every tool path from the environment (`ANDROID_HOME`, `JAVA_HOME`, `GRADLE`, `PYTHON`) and signs with\r\n`DM_KEYSTORE` (default: the Android debug keystore in `~\u002F.android`). Output: `work\u002FD3-port-debug.apk`, app id\r\n`org.diablo3.port` (\"Diablo III Mobile\"). It downloads the default Turnip driver with a pinned SHA-256\r\n(`tools\u002Ffetch_turnip.py`) the first time. `work\u002F` is git-ignored and holds every build output and every game-derived file.\r\n\r\n## Installing\r\n\r\nFull guide: **[docs\u002FINSTALL.md](docs\u002FINSTALL.md)** (English) \u002F **[docs\u002FINSTALL.ru.md](docs\u002FINSTALL.ru.md)** (Russian).\r\n\r\n1. Dump your own copy (base game `01001B300B9BE000` + update `01001B300B9BE800` **v1441792**, as NSP \u002F NSZ \u002F XCI \u002F XCZ;\r\n   optional language packs, e.g. Russian `01001B300B9BF00A`) and your console's `prod.keys` — e.g. with nxdumptool and\r\n   Lockpick_RCM on your Switch.\r\n2. Put the files into `put-game-files-here\u002F` (any names) and double-click `setup.bat`, or run `bash setup.sh` on\r\n   Linux \u002F macOS (explicit files in any order work too; `setup check` reports what is missing and changes nothing).\r\n   Setup provides Python, its packages and the .NET 10 SDK in `tools\u002F.runtime` when they are missing (it asks first),\r\n   checks the inputs and the free space (~20 GB while preparing, more with NSZ \u002F XCZ or language packs), then extracts the\r\n   program, patches it, checks the patch, extracts the data, translates the shaders and extracts the language packs into\r\n   `work\u002FDiablo3Mobile` (~16 GB, +5–6 GB per language pack). Technical details: [docs\u002Fd3\u002FGAME_FILES.md](docs\u002Fd3\u002FGAME_FILES.md).\r\n3. Copy `work\u002FDiablo3Mobile` to the phone's `Download` folder (USB cable, *File transfer* mode, or `setup push` \u002F\r\n   the adb commands setup prints) and install the APK.\r\n4. Start *Diablo III Mobile* and allow *All files access* when asked.\r\n\r\n## Vulkan drivers\r\n\r\nThe APK bundles **Mesa Turnip v27** (an adrenotools build of Mesa main for Adreno 6xx\u002F7xx) and uses it by default; it\r\nfalls back to the phone's own driver when Turnip does not load or finds no supported GPU. Your own adrenotools driver\r\npackage can be copied into `Download\u002FDiablo3Mobile\u002Fdrivers\u002F` (the folder or the package zip as released) and chosen in the\r\ngear dialog. Details and known packages: [drivers\u002FREADME.md](drivers\u002FREADME.md).\r\n\r\nThe default is picked per GPU at every start (from the DOOM 2016 port): Adreno 6xx\u002F7xx use the bundled Turnip;\r\nAdreno 710\u002F720\u002F722 and 8xx use their own Turnip package, which the app downloads when the phone is online (the list is\r\nDOOM Mobile's public [drivers\u002Fmanifest.json](https:\u002F\u002Fgithub.com\u002FDesm0nt\u002Fdoom-port\u002Fblob\u002Fmain\u002Fdrivers\u002Fmanifest.json),\r\neach zip checked against its SHA-256); Mali, PowerVR, Xclipse and anything without the Adreno kernel driver use the\r\nphone's own driver, and Turnip packages are hidden there. A package for another GPU family, a Linux\u002Fglibc build\r\n(`*-EMULATOR.zip`) or one missing a library is not loaded and is hidden in the gear dialog with the reason. After loading,\r\nthe app checks that the package's driver really took over; if not, or if it fails to start, the game runs on the system\r\ndriver and a message says why. If two launches in a row end before the first frame with a custom driver, the system\r\ndriver is chosen and saved (crash guard).\r\n\r\n## Other GPUs (Mali, PowerVR, Xclipse)\r\n\r\nUntested on real hardware. The engine checks the device's features and, instead of aborting, falls back where the\r\ngame's Switch shaders need something the GPU lacks (all ported from the DOOM 2016 port): no geometry shaders, no\r\nformat-less storage writes or `shaderImageGatherExtended` (those shaders are skipped or degraded), no D24 depth (D32\r\nis used), no GPU timestamps, no linear filtering of some formats (nearest), no depth bounds \u002F non-solid fill \u002F depth bias\r\nclamp, no `nullDescriptor`, texel buffer limits, driver pipeline failures (skipped instead of fatal), interrupted fence\r\nwaits on Mali. BC textures, which Mali and PowerVR cannot sample, are decoded on the GPU in batches. One boot.log line\r\nlists what the device needed: `NVN fallbacks on this device: ...`. `DM_GFX_SIM_GPU=mali` (or `powervr`, `xclipse`) in\r\n`Download\u002FDiablo3Mobile\u002Fdm\u002Fenv` simulates such a GPU on a Snapdragon for testing. Reports (device, GPU, driver,\r\n`crash.txt`) are very welcome.\r\n\r\n## Android versions and CPUs\r\n\r\n- `D3-port-debug.apk`: Android 12 or newer (minSdk 31). `D3-port-debug-android10.apk` (`build_apk.ps1 -Android10`): the\r\n  same app for Android 10 and 11 (minSdk 29; asks for the storage permission there instead of *All files access*); it\r\n  also installs on newer Android. Not yet tested on a real Android 10 \u002F 11 device.\r\n- 64-bit ARM only. ARMv8.0 CPUs without LSE atomics (Cortex-A53 \u002F A57 \u002F A72 \u002F A73 phones, e.g. Snapdragon 6xx) are\r\n  supported: the port's own hand-written code picks an ARMv8.0 variant at start (`boot: cpu ...` line in boot.log).\r\n\r\n## Logs and crash reports\r\n\r\nEvery start writes a fresh `boot.log` (the previous run is kept as `boot.prev.log`): the device, SoC, GPU, Vulkan driver\r\nchoice, CPU features and the game's progress (archives opened, loading screens, menus, Vulkan driver status). When the\r\ngame crashes or is killed while playing, the next start writes **`Download\u002FDiablo3Mobile\u002Flogs\u002Fcrash.txt`** (the previous\r\none is kept as `crash.prev.txt`; without file access `Android\u002Fdata\u002Forg.diablo3.port\u002Ffiles\u002Flogs\u002F`) and shows a message:\r\nthe device header, the reason, the start and end of that run's boot.log and the app's logcat. `boot.log` itself is\r\ncopied next to it when the app goes to the background. Attach `crash.txt` to a bug report. Switches and details:\r\n[docs\u002Fd3\u002FDOOM_PORTS.md](docs\u002Fd3\u002FDOOM_PORTS.md).\r\n\r\n## Repository layout\r\n\r\n| Path | What |\r\n|---|---|\r\n| `dm\u002F` | The host (from d2r-mobile, via DOOM Mobile): loader, HLE (`dm\u002Fhost`, Diablo III code in `hle_d3.c` \u002F `hle_d3_ui.c` and behind `DM_GAME_D3`), NVN recorder and Vulkan engine (`dm\u002Fgfx`), Android app (`dm\u002Fandroid`), offline rewriter (`dm\u002Ftools\u002Fpatch_nso.py`) and its verifiers (`dm\u002Fverify`). The tree also carries the DOOM, DOOM Eternal and Xenoblade 2 code paths of the same host family (`DM_GAME=doom \u002F eternal \u002F xc2`); Diablo III builds on the lean DOOM core and reuses the XC2 shader translator. |\r\n| `setup.sh`, `setup.bat`, `build.bat` | Game file preparation (`tools\u002Fsetup_d3.py`) and APK build entry points |\r\n| `tools\u002F` | Diablo III tooling: package \u002F RomFS \u002F ExeFS readers, CPK archive reader, shader jobs and translation, DLC extraction, APK build, device test and analysis scripts |\r\n| `third_party\u002Flibadrenotools` | git submodule (BSD-2-Clause) |\r\n| `drivers\u002F` | Notes on the bundled and optional Vulkan driver packages (no binaries) |\r\n| `docs\u002Fd3\u002F` | Port documentation: journal, CPK format, shaders, build gates, widescreen, touch design, performance notes, game files, derived information |\r\n| `docs\u002FTHIRD_PARTY.md`, `docs\u002FDEPENDENCIES.md`, `docs\u002FDERIVED.md`, `docs\u002Fupstream\u002F` | Attribution: code ported from other projects, the third-party code and D2R-derived records inherited from d2r-mobile, and d2r-mobile's acknowledgements |\r\n\r\n## Credits\r\n\r\nDiablo III Mobile stands on the work of others — thank you:\r\n\r\n- **[d2r-mobile](https:\u002F\u002Fgithub.com\u002Fjhaizhou-ops\u002Fd2r-mobile)** by jhaizhou (MIT) — the base of this port: native\r\n  NSO loader and rewriter, HLE host, NVN → Vulkan engine, shader translation chain and Android app (Java package\r\n  `com.xiaoboluo.d2r`). Its Android app and Vulkan engine came from community contributors; see its\r\n  [acknowledgements](docs\u002Fupstream\u002FREADME-d2r-mobile.md).\r\n- **[nxnative](https:\u002F\u002Fgithub.com\u002Fseedds\u002Fnxnative)** by seedds (MIT) — threads and SVCs, SDK services (including the\r\n  amiibo \u002F local-wireless stubs and the SDK 8.2 reference profile), audio renderer, NVN entry points, the shader program\r\n  key, patcher and translator pieces.\r\n- **[nx2android](https:\u002F\u002Fgithub.com\u002Fshirai91\u002Fnx2android)** (MIT, seedds) — window acquire-sync fix, Android haptics,\r\n  ADPF, gamepad code, the on-screen gamepad theme packs and layout, the save-transfer and pause-hold designs.\r\n- **[BOTWRecompAndroid](https:\u002F\u002Fgithub.com\u002Fmamcjr\u002FBOTWRecompAndroid)** (MIT, Peiikai \u002F mamcjr) — the Turnip \u002F adrenotools\r\n  driver loading approach, the sync-lag idea and NVN 55 object sizes (ideas, re-implemented).\r\n- **[D3CPKUnpack](https:\u002F\u002Fgithub.com\u002FRedMadKnight\u002FD3CPKUnpack)** by Krzysztof Janiszewski (RedMadKnight, MIT) — the\r\n  Diablo III console CPK archive library, vendored as `tools\u002Fd3cpklib.py`.\r\n- **[libadrenotools](https:\u002F\u002Fgithub.com\u002Fbylaws\u002Flibadrenotools)** by Billy Laws (BSD-2-Clause).\r\n- **Ryujinx** shader translator (Ryujinx Team and Contributors, MIT), vendored by d2r-mobile in `dm\u002Fthird_party\u002Fryujinx`.\r\n- **[AMD FidelityFX FSR 1](https:\u002F\u002Fgithub.com\u002FGPUOpen-Effects\u002FFidelityFX-FSR)** RCAS (MIT).\r\n- **[Mesa](https:\u002F\u002Fmesa3d.org) Turnip** (MIT) — the default Vulkan driver, bundled in the APK as the adrenotools build\r\n  by **[The412Banner](https:\u002F\u002Fgithub.com\u002FThe412Banner\u002FBanners-Turnip)** (Mesa main). Not stored in this repository:\r\n  `tools\u002Ffetch_turnip.py` downloads it at build time with a pinned SHA-256.\r\n- Khronos **Vulkan validation layers** (Apache-2.0) — used for debugging, not redistributed.\r\n\r\nDetails per file: [docs\u002FTHIRD_PARTY.md](docs\u002FTHIRD_PARTY.md).\r\n\r\nDiablo, Diablo III and Blizzard Entertainment are trademarks or registered trademarks of Blizzard Entertainment, Inc.\r\nNintendo Switch and NVN are trademarks of Nintendo. This is an unofficial, non-commercial fan project with no affiliation\r\nto either of them. **You must own the game and dump it yourself**: no game files, no keys and no game-derived output are\r\nincluded or distributed here; play it with a copy you own.\r\n\r\n## License\r\n\r\nMIT — see [LICENSE](LICENSE). The d2r-mobile copyright notice is kept; third-party components keep their own licenses.\r\n\r\n---\r\n\r\n## По-русски\r\n\r\n> [!WARNING]\r\n> **Проверено только на одном устройстве: Snapdragon 8 Gen 3 \u002F Adreno 750 (Xiaomi 14 Ultra).** Телефоны с GPU **Mali**\r\n> (Exynos, Dimensity, Tensor), **PowerVR** и **Xclipse** не тестировались вообще — обходы в движке есть, но проблемы\r\n> вероятны. Если что-то не работает, [откройте issue](https:\u002F\u002Fgithub.com\u002FDesm0nt\u002Fdiablo3-port\u002Fissues) и **обязательно\r\n> приложите логи** — всю папку `Download\u002FDiablo3Mobile\u002Flogs\u002F`: `crash.txt` (появляется при запуске после падения),\r\n> `boot.log` \u002F `boot.prev.log` и `logcat.txt` \u002F `logcat.prev.txt` (пишутся на лету, поэтому сохраняются, даже если система\r\n> убила игру), и укажите модель телефона и версию Android.\r\n\r\n**Diablo III Mobile** — нативный порт Diablo III: Eternal Collection для Nintendo Switch на Android. Оригинальный\r\nAArch64-код игры исполняется прямо на процессоре телефона (без эмулятора и JIT); небольшой хост подменяет системные\r\nсервисы Switch (HLE `nn::`, SDK 8.2), а графический API NVN (API 53) воспроизводится через Vulkan. Основа — проект\r\n[d2r-mobile](https:\u002F\u002Fgithub.com\u002Fjhaizhou-ops\u002Fd2r-mobile) (MIT) через порт DOOM Mobile.\r\n\r\n- **Игры в репозитории нет.** Нужна своя копия Diablo III для Switch (база + обновление v1441792, по желанию — языковой\r\n  пакет DLC, например русский `01001B300B9BF00A`) и свои ключи консоли. **Установка по шагам:\r\n  [docs\u002FINSTALL.ru.md](docs\u002FINSTALL.ru.md).** Технические подробности подготовки файлов —\r\n  [docs\u002Fd3\u002FGAME_FILES.md](docs\u002Fd3\u002FGAME_FILES.md) (англ.), журнал порта — [docs\u002Fd3\u002FD3_PORT.md](docs\u002Fd3\u002FD3_PORT.md).\r\n- Проверено на одном устройстве: Snapdragon 8 Gen 3 \u002F Adreno 750 (Xiaomi 14 Ultra) с драйвером Turnip из APK: меню и\r\n  геймплей Акта 1 — **60 fps**. Другие GPU не проверялись; для Mali \u002F PowerVR \u002F Xclipse в движке есть фолбэки из порта\r\n  DOOM 2016 (без геометрических шейдеров, без D24, без BC — декод текстур на GPU и т. п.; строка\r\n  `NVN fallbacks on this device` в boot.log).\r\n- Драйвер выбирается по GPU при каждом запуске: Adreno 6xx\u002F7xx — встроенный Turnip, Adreno 710\u002F720\u002F722 и 8xx — свой\r\n  пакет Turnip (скачивается, когда есть интернет, с проверкой SHA-256), Mali \u002F PowerVR \u002F Xclipse — системный. Пакет не\r\n  для этого GPU, glibc-сборка или пакет без нужной библиотеки не загружаются и скрыты в настройках с причиной; если\r\n  выбранный драйвер не подменил системный или не запустился — игра идёт на системном и показывает почему; два запуска\r\n  подряд без первого кадра — системный драйвер сохраняется.\r\n- Android 12+: `D3-port-debug.apk` (minSdk 31); Android 10 и 11: `D3-port-debug-android10.apk` (minSdk 29,\r\n  `build_apk.ps1 -Android10`; на настоящем Android 10 ещё не проверялся). Процессоры ARMv8.0 без LSE (Cortex-A53\u002FA73,\r\n  Snapdragon 6xx) поддерживаются.\r\n- **Логи и отчёты о падении:** каждый запуск пишет новый `boot.log` (прошлый — `boot.prev.log`). После падения или\r\n  убийства во время игры следующий запуск пишет **`Download\u002FDiablo3Mobile\u002Flogs\u002Fcrash.txt`** (прошлый — `crash.prev.txt`)\r\n  и показывает сообщение; там же копия `boot.log`. Прикладывайте `crash.txt` к сообщениям об ошибках.\r\n- Широкий экран (Hor+, по форме экрана телефона), сенсорная раскладка под Diablo (плавающий стик, ходьба по касанию,\r\n  кнопки навыков с иконками из HUD игры, жесты для меню), геймпады, вибрация, резкость RCAS, лимит 30 \u002F 60 fps,\r\n  единое меню паузы, скины геймпада, перенос сохранений.\r\n- Подготовка файлов: положите базу, обновление, `prod.keys` (и языковой пакет) в `put-game-files-here\u002F` и дважды\r\n  щёлкните `setup.bat` (Linux \u002F macOS: `bash setup.sh`); проверка без изменений — `setup check`. Готовую папку\r\n  `work\u002FDiablo3Mobile` скопируйте в `Download` телефона (или `setup push`).\r\n- Сборка: `cmake -S dm\u002Fandroid -B work\u002Fbuild-android … -DDM_GAME=d3`, затем `build.bat` \u002F `tools\u002Fbuild_apk.ps1` (см. «Building»).\r\n","这是一个将《暗黑破坏神III：永恒收藏版》（Nintendo Switch版）原生移植到Android ARM64设备的开源项目。它通过高阶模拟（HLE）实现Switch系统服务（nn:: SDK），并将专有图形API NVN实时转译为Vulkan渲染，无需CPU指令级模拟或JIT编译。项目仅提供运行框架，需用户自行提供游戏文件、密钥及更新包。目前在骁龙8 Gen 3+Adreno 750平台验证可用，对Mali、PowerVR等GPU暂未充分适配。适用于具备高性能ARM64 SoC和兼容Vulkan驱动的Android手机，面向希望本地运行原版Switch游戏逻辑的技术型玩家。",2,"2026-11-24 04:40:57","CREATED_QUERY"]