登录 注册

MacNativeGames (苹果设备原生运行塞尔达工具)

去点 Star
游戏与娱乐
7,468
Stars
0
Forks
0
Watchers
0
Open Issues
未知
许可证
C
语言
创建时间
最近更新

项目能做什么

非模拟器项目,将 NVN 重建为 Metal,可在 Mac、iPhone 等 Apple 设备上原生运行自备的旷野之息与王国之泪。
来源:AI 基于仓库事实生成 · 内容以仓库实际 README 为准

使用说明 查看原始 README 原仓库文档

项目简介

MacNativeGames 是一项技术探索实验项目,旨在验证任天堂 Switch 游戏的 NVN 图形 API 是否能被保真移植到 Apple 的 Metal 框架上。

该项目不是模拟器。由于 Nintendo Switch(NVIDIA Tegra X1)与 Apple Silicon 芯片同样基于 ARM64 架构,游戏本身的 ARM64 代码可以直接在 Apple 芯片上原生执行,Switch 的系统服务由轻量宿主(host)处理,NVN 图形则在 Metal 上重构渲染。

法律免责声明:本项目不包含且不分发任何游戏文件、美术素材、音频、着色器代码或密钥文件。用户必须使用从自己拥有并购买的正版 Switch 及卡带中导出的游戏文件(XCI/NSP)和 prod.keys。严禁在 Issue 或 PR 中索要或传播盗版资源。


核心功能

  • ARM64 原生运行:无需传统模拟器中间层,直接在 Apple 芯片上运行游戏二进制指令。
  • NVN 转 Metal:重构并翻译 NVN 图形指令;支持 Switch 2 实验性的 Ampere (NVN2) 着色器翻译。
  • 跨 Apple 生态支持:
  • Mac:支持高达 4K 原生分辨率(32 GB 及以上内存的 Mac 在运行《王国之泪》1.4.3 时默认可达 5K)。
  • iPhone / iPad:支持构建未签名 IPA。
  • Apple Vision Pro:早期窗口模式支持。
  • 支持的游戏列表:
  • Switch 1 游戏:
    • 《塞尔达传说:王国之泪》(Tears of the Kingdom,版本:1.0.0, 1.2.1, 1.4.3)
    • 《塞尔达传说:旷野之息》(Breath of the Wild,版本:1.6.0, 1.9.0)
    • 社区支持游戏(早期/实验性):《任天堂明星大乱斗 特别版》、《超级马力欧 奥德赛》、《猎天使魔女 3》、《超级马力欧兄弟 惊奇》、《宝可梦传说:阿尔宙斯》、《精灵与盲林》、《超级马力欧派对 空前盛会》等。
  • Switch 2 游戏(实验性):
    • 《Donkey Kong Bananza》(早期可玩)
    • 《Pokémon Pokopia》(早期开场可运行)
    • 《Mario Kart World》(社区实验性移植)

适合谁用

  • 拥有正版 Switch 游戏与设备,想在 Apple Silicon Mac 或 iOS 设备上体验更高分辨率与原生性能的玩家。
  • 研究底层图形 API(NVN 到 Metal 映射)、ARM64 二进制重写与系统调用的开发者。

安装步骤

根据 README 说明,构建的基本工作流为: 1. 准备好从自己 Switch 导出的游戏镜像(.xci 或 .nsp)以及 prod.keys。 2. 运行仓库提供的构建脚本,自动生成 Mac 独立 App 或未签名的 iPhone/iPad .ipa 安装包。

注:README 原文未列出完整的命令行安装步骤与脚本参数,具体细节请查看原仓库文档 docs/install.md。


配置说明

  • 系统与硬件要求:
  • Mac:配备 Apple Silicon 芯片(M 系列)的 Mac。
  • iPhone / iPad:需满足 iOS/iPadOS 26 系统,且设备为 iPhone 14 或更新机型。
  • 必要资产文件:
  • prod.keys:从个人 Switch 主机导出的解密密钥。
  • 对应游戏支持版本的 XCI / NSP 文件。
  • 其余具体配置文件及构建参数原文未说明,请查看原仓库。

常见问题

Q: 为什么这不是模拟器?
A: 传统模拟器需要在运行时通过 JIT 或解释器翻译不同架构的 CPU 指令。而 Switch 与 Apple 芯片同为 ARM64 架构,本项目直接让游戏代码在芯片上运行,仅拦截/重写部分操作系统调用并用 Metal 实现 NVN 图形管线。

Q: Switch 2 游戏目前支持到什么程度?
A: Switch 2 游戏基于同一套《王国之泪》运行时,通过 NVN2 着色器翻译和 SDK 20 宿主进行实验性支持。目前暂不支持一键打包为 App、暂不支持 iPhone/iPad 以及 DLC。

Q: 仓库里是否有任何我可以下载直接玩的文件?
A: 没有。仓库仅包含补丁代码、哈希校验表和没有代码的着色器映射表(docs/shader-list.md),游戏运行所需的一切资源必须在本地通过您自己的合法文件构建生成。

原始 README 摘录(英文原文,节选前 3000 字符)
# MacNativeGames

<p align="center"><b>A technical exploration: can a Nintendo Switch game's NVN graphics be ported to Metal?</b><br>
Tested with your own copies of Tears of the Kingdom and Breath of the Wild on Mac, iPhone and iPad. Not an emulator: the game's own ARM64 code runs directly on Apple chips.</p>

[English](#english) | [中文](#chinese)

# English

## Legal

**You must own the game.** Use this project only with games that you bought, and with keys and system files dumped from your own Nintendo Switch. This is an independent, non-commercial project. It is not affiliated with, endorsed by, or sponsored by Nintendo. The Legend of Zelda and Nintendo Switch are trademarks of Nintendo.

The repository contains no game content and distributes none: no game program, art, text, audio, shaders or keys. Everything the game needs is made on your own computer from your own files when you build the app. The app you build contains the game, so it is for your own use only; do not share it. What the repository does hold is the information needed to make the port work: the patch code, the addresses and hashes used to check your files, and the [shared shader list](docs/shader-list.md), which names shaders and bind states but contains no shader code.

Apple, Mac, iPhone, iPad, Apple Vision Pro and Metal are trademarks of Apple Inc.; this project is not affiliated with Apple. Other game titles and trademarks named here belong to their respective owners.

Whether dumping games, keys and system files is legal depends on where you live; check and follow your local laws.

Issues and pull requests that contain or ask for game files, keys or firmware will be deleted.

## About

**This project is a technical exploration, mainly feasibility experiments and analysis.** The Nintendo Switch is an ARM system (an ARM64 CPU in NVIDIA's Tegra X1), and Apple chips are ARM64 as well, so we want to test whether its games can, technically, be ported to Apple chips. It started from one question: can the NVN graphics a Switch game was written for be rebuilt faithfully on Apple's Metal, and can the game's own ARM64 code run directly on Apple chips without an emulator? Tears of the Kingdom and Breath of the Wild are the test cases, because they push the graphics API hard. The repository records the experiments, measurements and findings along the way; it is a study of the technique, not a game distribution. **It does not encourage piracy:** use only your own game data, dumped from a game you bought and from your own Switch, never game files, keys or firmware downloaded from the internet or obtained from anyone else.

How it works: bring your game file (XCI or NSP) and your `prod.keys`; one script builds a Mac app or an unsigned iPhone/iPad IPA. The game's own ARM64 code runs directly on Apple chips (rewritten where the operating system requires it), the Switch system services are answered by a small host, and the game's NVN graphics are rebuilt on Metal. The iOS build requires iO
阅读完整原文

商业机会分析 AI 生成

跨平台底层图形转译中间件与 SDK

产品构想剥离特定游戏补丁,将项目中 NVN 至 Metal 的图形转译层通用化,封装为面向游戏工作室的商用级跨平台图形转换工具包。
核心功能Shader 自动化转译管线、Metal 渲染后端映射、主机级图元与状态机无损模拟、跨平台性能剖析工具。
目标用户游戏开发工作室、跨平台移植外包团队。
难度/周期高 · 6-12个月 · 成本:各型号 Apple 芯片硬件测试设备购置成本及高强度逆向工程研发投入。
收费模式按席位订阅的开发者 SDK 授权费、游戏项目商业发行分成。
竞争风险底层专有 API(NVN)协议逆向的版权与商业法务争议;Metal 生态自身演进带来的兼容性破损。
依据 AI推测

Apple Silicon 游戏原生移植咨询与企业定制服务

产品构想基于原生 ARM64 兼容与 Metal 深度优化的技术积累,为已有 ARM/主机平台作品的游戏发行商提供原生 macOS/iOS 移植服务。
核心功能目标代码原生架构重构、Metal 深度性能调优、系统调用层无损桥接、包体瘦身与内存优化。
目标用户寻求拓展 Mac App Store 及 iOS 3A 游戏市场的游戏厂商、独立游戏团队。
难度/周期中 · 2-4个月/项目 · 成本:主要是专业工程师人力工时与沟通成本。
收费模式技术咨询固定费用 + 移植交付里程碑款项 + 销售分成。
竞争风险获客周期长且极度依赖业内人脉与成功案例背书,难以快速规模化。
依据 数据支持的判断

极客开发者社区与技术研究赞助计划

产品构想以纯学术和工程探索为名,通过 Patreon/GitHub Sponsors 提供关于底层图形学、Metal 实现细节的高级技术文档与私有讨论组。
核心功能底层技术实现深度解析报告、专属技术交流群、前沿实验特性抢先体验。
目标用户逆向工程爱好者、计算机图形学学生及从业者、高级玩家。
难度/周期低 · 1周 · 成本:社区运营与技术文档编写时间。
收费模式每月梯级会员赞助(如 5~50 美元/月)。
竞争风险可能遭遇任天堂版权法务打击(DMCA),导致代码库及赞助渠道被关停冻结。
依据 已验证事实
AI 基于仓库公开数据分析生成,含推测成分,不构成收益承诺。
报告会保存到 个人中心

竞品与相似项目 GitHub Search 真实检索

项目中文简介Stars语言
apple/container 适用于 Mac 的轻量级虚拟机工具,用于创建和运行 Linux 容器。 51,124 Swift
ml-explore/mlx 专为 Apple silicon 打造的高性能数组与机器学习框架。 29,116 C++
jundot/omlx 支持连续批处理与缓存的 Apple Silicon 本地 LLM 推理服务。 23,494 Python
apple-aiml-research/ml-stable-diffusion 在 Apple Silicon 设备上通过 Core ML 运行的 Stable Diffusion。 17,960 Python
Lakr233/vphone-cli 在 Apple Silicon Mac 上运行虚拟 iPhone 的命令行工具。 16,603 Swift
darrylmorley/whatcable 通过通俗语言直观显示插入 Mac 的 USB-C 线缆具体功能的菜单栏应用。 9,102 Swift
以上为通过 GitHub 官方 Search API 检索的相似项目,功能差异与优劣势需进一步人工确认,配置 AI 后可生成对比分析。

项目优势与风险

技术成熟度创建于 ,最近推送 ,发布过 1 个 Release
社区活跃Star 7,468 / Fork 0 / Issue 0(数据支持,可自行核实)
许可证未检测到(需人工确认)
主要风险上游项目方向可能变化;同赛道竞争者较多(见竞品表);热度与需求不完全等价

安装与使用

快速开始(以仓库 README 为准)
git clone https://github.com/ly05010419/MacNativeGames.git
cd MacNativeGames
# 请阅读仓库 README 获取确切安装步骤(依赖、配置、启动命令)
阅读原仓库文档
术语说明:Docker=应用容器(把程序和依赖打包运行);API Key=调用外部服务的密钥;Git Clone=把仓库代码下载到本地。常见错误:API Key 未配置 / 端口占用 / 数据库连接失败,多数项目在 README 的 Troubleshooting 章节有说明。