项目 / willfaust/Madeira

willfaust/Madeira

暂无行业标签
语言 C标签 —数据更新 2026-11-25 06:49:28 · 仓库 2026-11-24

一段话介绍

一个让手机跑起 Windows 电脑游戏的开源模拟器。

本站整理,非 GitHub 官方 description。

官方 description(GitHub API 原样)
Run x86-64 Windows PC games on jailed iOS via FEX-Emu + Wine + DXMT
803累计星
0Fork
+83峰值日增
1上榜次数

官方快照(gh_history.db,2026-11-25):总榜 未进 Top50 · 日榜 未进 Top50 · 周榜未满 7 天基线(官方不生成) · 月榜暂无官方口径;下方四卡为站内趋势聚合(周卡按上榜次数,非官方 7 日增量窗)。

行业与场景 — 暂未挂到行业场景库

更多信息

以下三段按该项目自己的 GitHub README 章节摘录(可合理截断并标明);README 没有对应章节的留空,不编造。

我的用法
用法上受 iOS 限制:应用无法启动其他程序,全部逻辑运行在同一进程内,连 Wine 的服务端也以线程形式而非独立程序运行。
特点或设计要点
Madeira 提供 Windows 桌面游戏库,支持 Steam 登录安装启动游戏、Steam Cloud 存档同步与冲突备份、蓝牙手柄和触屏操控、键鼠输入透传以及逐游戏日文区域设置。
局限和适用边界
Madeira 仅在 iOS 26 及以上的 iPhone 上可靠运行,依赖 iOS 只在调试器附加时才允许的 JIT,需侧载安装且免费签名的应用七天后要续签,因此无法上架 App Store。
星标走势近 25 天
本站点评(非项目 README 原文)
开源选型初筛时纳入 Madeira(一个让手机跑起 Windows 电脑游戏的开源模拟器。):先对照许可证与维护活跃度,小 PoC 通过再进短名单。
首次发现 2026-09-28 · 最近在榜 2026-09-28 · 语言 C · 贡献者 —
game

GitHub 项目主页介绍

来自 GitHub 仓库 README / 主页介绍正文,原样摘录,共 11,261 字节。

<p align="center">
  <img src="docs/assets/banner.png" alt="Madeira — Bringing PC gaming to your iPhone." width="100%">
</p>

<p align="center">
  <a href="https://discord.gg/4t5mNjwCn7"><img src="https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fdiscord.com%2Fapi%2Finvites%2F4t5mNjwCn7%3Fwith_counts%3Dtrue&query=%24.approximate_member_count&suffix=%20members&label=Discord&logo=discord&logoColor=white&color=5865F2&style=for-the-badge" alt="Join the Madeira Discord"></a>
  &nbsp;&nbsp;&nbsp;
  <a href="https://github.com/willfaust/Madeira/releases"><img src="https://img.shields.io/github/v/release/willfaust/Madeira?label=Release&style=for-the-badge&color=brightgreen" alt="Latest release"></a>
  &nbsp;&nbsp;&nbsp;
  <a href="LICENSE"><img src="https://img.shields.io/badge/License-GPL--3.0--or--later-yellow?style=for-the-badge" alt="License: GPL-3.0-or-later"></a>
</p>

Madeira runs Windows PC games on an iPhone, with no jailbreak. Games run as they
are, unmodified, inside a single iOS app.

> [!NOTE]
> Madeira is an active research project. Many games start and some play well,
> but performance and compatibility vary from game to game, and things change
> quickly. Expect rough edges.

## How it works

| Layer | What it does |
|---|---|
| **[FEX-Emu](https://github.com/FEX-Emu/FEX)** | Translates the game's x86 and x86-64 code to ARM64 as it runs. |
| **[Wine](https://www.winehq.org/)** 11.4 | Provides Windows. It is built for ARM64EC, so Wine itself runs natively and only the game's own code is translated. 32-bit games run through WoW64. |
| **[DXMT](https://github.com/3Shain/DXMT)** | Draws Direct3D 9, 10 and 11 with Metal. |
| **[madeira-d3d12](madeira-d3d12)** | Madeira's own Direct3D 12 implementation on Metal, converting DXIL shaders at run time with Apple's Metal Shader Converter. |

iOS apps cannot start other programs, so everything runs in one process: even
Wine's server runs as a thread instead of a separate program.

## Features

- **Game library** with artwork, search and a Windows desktop session.
- **Steam**: sign in, browse the games you own, install and update them, and
  start them through Valve's own Windows Steam client (Madeira Dock).
- **Steam Cloud saves**: saves sync with Steam Cloud when Madeira starts and
  before a game starts, and **Upload saves and close Madeira** in the game
  menu sends them when you stop playing. Saves that
  changed on both sides are never overwritten without asking, and anything a
  sync replaces is backed up.
- **Controllers**: Bluetooth controllers through XInput, plus customisable
  on-screen touch controls.
- **Keyboard, mouse and trackpad** passed through to games as real input.
- **Video and audio** for cutscenes and music, through FFmpeg, VideoToolbox and AudioToolbox.
- **Japanese locale** per game, for Japanese games and visual novels whose text
  shows as squares or gibberish or that do not start: Shift-JIS (code page 932)
  and a bundled Japanese font ([details](docs/JAPANESE.md)).

## Requirements

- An iPhone on **iOS 26 or later**, the only version Madeira currently runs
  on reliably. Development happens on recent Pro iPhones.
- **JIT**, which iOS only allows while a debugger is attached. Madeira can use
  [StikDebug](https://github.com/StikDebug/StikDebug) or its built-in StikJIT
  helper. On iOS 27 the built-in helper can pair the iPhone itself, without a
  computer.
- An **Apple ID** to sideload the app. A free account works; its signing
  expires after 7 days, so the app needs refreshing weekly with the installer
  that signed it. Madeira's own refresh is off by default
  ([details](docs/JIT.md#refreshing-the-signing)).
  Your games and saves are kept across reinstalls.

Because JIT needs a debugger, Madeira cannot be offered on the App Store.

## Installing

1. Download the IPA from the [latest release](https://github.com/willfaust/Madeira/releases).
2. Sideload it with your own Apple ID using SideStore, AltStore, Sideloadly,
   Plume or a similar tool.
3. Open Madeira and enable JIT. Automatic mode uses StikDebug when installed,
   otherwise it guides you through the built-in setup; see
   [JIT setup](docs/JIT.md).
4. In **Settings**, check that **JIT** and **Memory+** both show a green check:
   Madeira then says **Ready to play**.
5. Add a game. Steam games come from **Sign in to Steam** in the library. For
   a Windows game you already have, copy its whole folder into
   **Madeira › wine › drive_c** with the Files app, then tap **+** in the
   library and choose its `.exe`, `.bat` or `.cmd`; see
   [Adding games](docs/LIBRARY.md#adding-games).

Some 64-bit games need Microsoft's Visual C++ runtime, which is not included
(see [Licensing](#licensing)).

## Building from source

```sh
git clone --recurse-submodules https://github.com/willfaust/Madeira.git
```

`FEX`, `wine`, `dxmt` and `madeira-dock` are submodules that point at Madeira's
own forks; upstream checkouts will not build here. The build has several parts
(the Wine unix libraries, the ARM64EC Windows modules, FEX, DXMT and the app)
and some inputs that are not in the repository, such as the toolchains.
[`docs/BUILDING.md`](docs/BUILDING.md) walks through all of it.
git clone --recurse-submodules <this repo>
cd Madeira
./tools/build-ipa.sh   # produces dist/Madeira.ipa

See [`BUILDING.md`](BUILDING.md) for prerequisites, timing, and re-run notes.

Note that `FEX`, `wine` and `research/dxmt` are submodules pointing at forks
containing the iOS work; upstream clones will not build here.

### Repository layout

| Path | Contents |
|---|---|
| [`app/`](app) | The iOS app: SwiftUI front end, Wine bridge and bundled resources |
| [`wine/`](https://github.com/willfaust/wine), [`FEX/`](https://github.com/willfaust/FEX), [`dxmt/`](https://github.com/willfaust/dxmt), [`madeira-dock/`](https://github.com/willfaust/madeira-dock) | Madeira's forks and the Steam client launcher (submodules) |
| [`madeira-d3d12/`](madeira-d3d12) | The native Direct3D 12 runtime |
| [`build/`](build) | Build scripts and iOS-side sources, one folder per component |
| [`tests/`](tests) | Host checks and x86, x86-64 and DXMT test programs |
| [`tools/`](tools) | Helper scripts |
| [`docs/`](docs) | Documentation |
| [`research/`](research) | Experiments that are not part of the app |

## Documentation

| Topic | Document |
|---|---|
| Building from a clean checkout | [`docs/BUILDING.md`](docs/BUILDING.md) |
| StikDebug and built-in JIT setup | [`docs/JIT.md`](docs/JIT.md) |
| The game library | [`docs/LIBRARY.md`](docs/LIBRARY.md) |
| Steam sign-in, library and downloads | [`docs/STEAM_SIGNIN.md`](docs/STEAM_SIGNIN.md), [`docs/STEAM_LIBRARY.md`](docs/STEAM_LIBRARY.md) |
| Steam Cloud saves | [`docs/STEAM_CLOUD.md`](docs/STEAM_CLOUD.md) |
| Madeira Dock (the Steam client) | [`docs/MADEIRA_DOCK.md`](docs/MADEIRA_DOCK.md) |
| 32-bit games (WoW64) | [`docs/WOW64.md`](docs/WOW64.md) |
| Controllers and touch controls | [`docs/CONTROLLERS.md`](docs/CONTROLLERS.md) |
| Keyboard, mouse and trackpad | [`docs/KEYBOARD_MOUSE.md`](docs/KEYBOARD_MOUSE.md) |
| Audio and video | [`docs/MEDIA.md`](docs/MEDIA.md) |
| Licensing in detail | [`docs/LICENSING.md`](docs/LICENSING.md) |

## Licensing

Madeira is licensed under **GPL-3.0-or-later** ([`LICENSE`](LICENSE)) with
the **Madeira Converter Exception** ([`LICENSE-EXCEPTION.md`](LICENSE-EXCEPTION.md)),
an additional permission that allows it to work with Apple's Metal Shader
Converter.

The projects it builds on keep their own licenses upstream, but Madeira's forks
are not all licensed the same way as their upstreams:

| Component | License |
|---|---|
| [Wine fork](https://github.com/willfaust/wine) | LGPL-2.1-or-later, like upstream Wine |
| [FEX-Emu fork](https://github.com/willfaust/FEX), [DXMT fork](https://github.com/willfaust/dxmt) | Upstream code stays MIT; Madeira's changes are GPL-3.0-or-later with the exception |
| [rpmalloc fork](https://github.com/willfaust/rpmalloc) | Upstream code stays 0BSD; Madeira's changes are GPL-3.0-or-later with the exception |
| [Madeira Dock](https://github.com/willfaust/madeira-dock) | GPL-3.0-or-later with the exception |

Anything obtained earlier under a permissive license stays available under it.
Per-component details, including GnuTLS, Nettle, GMP, FFmpeg and LLVM, are in
[`THIRD-PARTY-NOTICES.md`](THIRD-PARTY-NOTICES.md); the license texts are in
[`LICENSES/`](LICENSES).

Microsoft's Visual C++ runtime DLLs are **not** distributed with Madeira. To
build with them, supply them yourself as described in
[`tools/fetch-vcruntime.md`](tools/fetch-vcruntime.md).

## Contributing

Contributions are welcome under GPL-3.0-or-later; see
[`CONTRIBUTING.md`](CONTRIBUTING.md).

Madeira's forks contain a lot of AI-assisted work. FEX-Emu does not accept
AI-generated code, so please **do not send changes from these forks upstream**
to FEX-Emu, and check each upstream project's contribution policy before
proposing anything to it.

## Credits

- **Will Faust** ([@willfaust](https://github.com/willfaust)): created Madeira
- **Nick** ([@125hz](https://github.com/125hz)): 32-bit game support, the game library and Madeira Dock
- **Jfishin** ([@Jfishin](https://github.com/Jfishin)): the original native Steam sign-in, library and downloads
- **Jesse** ([@JesseLovelace](https://github.com/JesseLovelace)): Steam Cloud saves, faster game launches, and fixes that let more games run
- **Dan Perks** ([@danperks](https://github.com/danperks)): in-app JIT without StikDebug, and pairing without a computer
- **bahacan16** ([@bahacan16](https://github.com/bahacan16)): Direct3D 12 and DXMT fixes, game launcher windows, per-game settings, PlayStation controllers, and save backups
- **thebcd69 / BCD** ([@thebcd69](https://github.com/thebcd69), also bahacan16 above): engine memory, exception, WoW64, win32u and D3D12 fixes, the memory-host extension experiment, host tests and tested game lists, taken from his [bcd-games](https://github.com/thebcd69/bcd-games) fork and from his pull requests #337 to #346 (credited late; see `THIRD-PARTY-NOTICES.md`)
- **spitefulowl** ([@spitefulowl](https://github.com/spitefulowl)): Wine and FEX runtime fixes, DXMT texture and memory fixes, audio, the swap tier, and library launch options
- **meshoklv** ([@meshoklv](https://github.com/meshoklv)): controller fixes for games that ship their own XInput or need focus, touch taps that stay off the mouse, and a crash-guard fix
- **TheHadesc** ([@TheHadesc](https://github.com/TheHadesc)): Madeira Dock starts for games whose Steam launch entries do not start at zero, and a touch gamepad that survives the in-game keyboard

Madeira is built on [Wine](https://www.winehq.org/), [FEX-Emu](https://github.com/FEX-Emu/FEX),
[DXMT](https://github.com/3Shain/DXMT) by Feifan He (3Shain) with the Direct3D 9
frontend by David Acevedo (dacevedo12), [rpmalloc](https://github.com/mjansson/rpmalloc)
by Mattias Jansson, [StikDebug](https://github.com/StikDebug/StikDebug),
[StikJIT](https://github.com/StikDebug/StikJIT) and
[idevice](https://github.com/jkcoxson/idevice) for enabling JIT. Thank you to everyone who contributes to them.

<p align="center">
  <a href="https://discord.gg/4t5mNjwCn7"><b>Join the community on Discord</b></a>
</p>
↑