Skip to content

armgit / soju

Public Imported from GitHub
0

Play Windows games on Apple Silicon Macs. Free, open-source app that installs the official Battle.net, Steam, Epic and GOG launchers and lists your games in one library.

Engine v1.9 and launcher support v3: Soju's own Wine fixes, upstream Wine and Proton backports, DXMT built from 3Shain/dxmt; Soju 1.14.22 (#141)

Mikek35da7c9516de
diff --git a/README.ko.md b/README.ko.md
index 87ee82ff2a9..e54ded393bf 100644
--- a/README.ko.md
+++ b/README.ko.md
@@ -8,7 +8,7 @@ Soju는 M1 이후 맥에 **Battle.net·Steam·Epic Games·GOG GALAXY·EA 앱·Ro
![Soju 통합 게임 라이브러리](docs/assets/soju-library.png)
-**[Soju 1.14.21 맥 앱 받기](https://github.com/BCD1210/soju/releases/download/v1.14.21/Soju-1.14.21-macos-arm64.zip)**, 또는 터미널에서 설치:
+**[Soju 1.14.22 맥 앱 받기](https://github.com/BCD1210/soju/releases/download/v1.14.22/Soju-1.14.22-macos-arm64.zip)**, 또는 터미널에서 설치:
```bash
brew install BCD1210/soju/soju
@@ -83,7 +83,7 @@ soju install # 이후: soju battlenet / soju d2r / soju steam / soju epic /
설치기는 **다운로드 전에 원하는 런처부터 선택**합니다. Steam만 선택하면 CX 엔진과 애플 GPTK를 받지 않습니다. Steam 그래픽 구성요소는 SHA-256으로 검증한 뒤 Soju 전용 Wine 11.0 환경에 자동으로 설치합니다. Battle.net·Epic·GOG는 공통 CX 엔진과 사용자가 별도로 받은 애플 GPTK를 사용합니다. 각 런처의 보틀·로그인·게임은 독립적으로 유지합니다.
-[Soju 맥 앱 다운로드](https://github.com/BCD1210/soju/releases/download/v1.14.21/Soju-1.14.21-macos-arm64.zip): 네이티브 앱 프리뷰에서 설치된 게임과 보유 게임, 스토어 검색, 즐겨찾기, 게임 실행, 플랫폼 관리를 한 화면에서 다룰 수 있습니다. [설치 안내와 요구 사항](docs/DESKTOP.md)을 확인해 주세요.
+[Soju 맥 앱 다운로드](https://github.com/BCD1210/soju/releases/download/v1.14.22/Soju-1.14.22-macos-arm64.zip): 네이티브 앱 프리뷰에서 설치된 게임과 보유 게임, 스토어 검색, 즐겨찾기, 게임 실행, 플랫폼 관리를 한 화면에서 다룰 수 있습니다. [설치 안내와 요구 사항](docs/DESKTOP.md)을 확인해 주세요.
## 일상 명령
@@ -169,7 +169,7 @@ soju ea # 또는 rockstar / ubisoft: 로그인, 게임 설치,
soju ea-kill # 또는 rockstar-kill / ubisoft-kill
```
-검증 2026-11-10: 세 런처 모두 설치와 로그인 창까지(계정 로그인과 게임은 아직 테스트 안 함). 이 런처들의 창은 Chromium 브라우저이고, GPU 프로세스가 다른 프로세스의 창에 그림을 그립니다. Wine의 맥 드라이버는 이걸 화면에 못 내보내서 CX 엔진에서는 창이 하얗거나 까맣게 나옵니다. 그래서 맥에서 CX 엔진을 복제(APFS 복제라 디스크를 더 쓰지 않음)한 두 번째 엔진에서 돌립니다. 여기에 launcher-support 구성요소, 즉 `patches/winemac-cross-process-swapchains.patch`(Highball, Wine 버그 60263)를 넣은 맥 드라이버와 프로세스 간 출력이 되는 Direct3D 10/11용 DXMT를 얹습니다. Battle.net·Epic·GOG는 CX 엔진을 그대로 씁니다. EA 앱은 처음 켤 때 스스로 업데이트하는데, 그 뒤 창이 비어 있으면 껐다가 다시 여세요.
+검증 2026-11-10: 세 런처 모두 설치와 로그인 창까지(계정 로그인과 게임은 아직 테스트 안 함). 이 런처들의 창은 Chromium 브라우저이고, GPU 프로세스가 다른 프로세스의 창에 그림을 그립니다. Wine의 맥 드라이버는 이걸 화면에 못 내보내서 CX 엔진에서는 창이 하얗거나 까맣게 나옵니다. 그래서 맥에서 CX 엔진을 복제(APFS 복제라 디스크를 더 쓰지 않음)한 두 번째 엔진에서 돌립니다. 여기에 launcher-support 구성요소, 즉 GPU 프로세스가 그린 화면을 다른 프로세스의 브라우저 창에 보여 주는 소주 패치 `patches/engine/0007-remote-child-layers.patch`를 넣은 맥 드라이버와 Direct3D 10/11용 DXMT를 얹습니다. Battle.net·Epic·GOG는 CX 엔진을 그대로 씁니다. EA 앱은 처음 켤 때 스스로 업데이트하는데, 그 뒤 창이 비어 있으면 껐다가 다시 여세요.
### GOG GALAXY
diff --git a/README.md b/README.md
index 54f68e15969..ebdd0c2a0bd 100644
--- a/README.md
+++ b/README.md
@@ -10,7 +10,7 @@ Soju installs the official Windows launchers for **Battle.net, Steam, Epic Games
![Soju unified game library](docs/assets/soju-library.png)
-**[Download Soju 1.14.21 for Mac](https://github.com/BCD1210/soju/releases/download/v1.14.21/Soju-1.14.21-macos-arm64.zip)**, or install from the terminal:
+**[Download Soju 1.14.22 for Mac](https://github.com/BCD1210/soju/releases/download/v1.14.22/Soju-1.14.22-macos-arm64.zip)**, or install from the terminal:
```bash
brew install BCD1210/soju/soju
@@ -85,7 +85,7 @@ soju install # then: soju battlenet / soju d2r / soju steam / soju epic / so
The installer asks which launchers you want **before downloading anything**. Steam-only installs skip the CX engine and Apple GPTK. Steam rendering components are downloaded with SHA-256 verification and installed in a Soju-owned Wine 11.0 runtime. Battle.net, Epic and GOG use the shared CX engine and your separately downloaded Apple GPTK. Each official client keeps its own bottle and shortcut in `~/Applications`.
-[Download Soju for Mac](https://github.com/BCD1210/soju/releases/download/v1.14.21/Soju-1.14.21-macos-arm64.zip): the native desktop preview includes installed and owned games, store search, favorites, game launching and platform management. See [desktop setup and requirements](docs/DESKTOP.md).
+[Download Soju for Mac](https://github.com/BCD1210/soju/releases/download/v1.14.22/Soju-1.14.22-macos-arm64.zip): the native desktop preview includes installed and owned games, store search, favorites, game launching and platform management. See [desktop setup and requirements](docs/DESKTOP.md).
## Everyday commands
@@ -187,7 +187,7 @@ soju ea # or rockstar / ubisoft: log in, install and play
soju ea-kill # or rockstar-kill / ubisoft-kill
```
-Verified 2026-11-10: install and sign-in window for all three (not signed in to an account; games not tested yet). Their windows are Chromium browsers whose GPU process draws into a window another process owns. Wine's Mac driver cannot present that, so on the CX engine these launchers stay white or black. They run on a second engine instead, made on your Mac from the CX engine (an APFS clone, no extra space) plus the launcher-support component: the Mac driver with `patches/winemac-cross-process-swapchains.patch` (from Highball, Wine bug 60263) and DXMT for Direct3D 10/11, which can present across processes. Battle.net, Epic and GOG keep the CX engine unchanged. The EA app updates itself on its first start; if its window then stays empty, quit it and open it again.
+Verified 2026-11-10: install and sign-in window for all three (not signed in to an account; games not tested yet). Their windows are Chromium browsers whose GPU process draws into a window another process owns. Wine's Mac driver cannot present that, so on the CX engine these launchers stay white or black. They run on a second engine instead, made on your Mac from the CX engine (an APFS clone, no extra space) plus the launcher-support component: the Mac driver with Soju's `patches/engine/0007-remote-child-layers.patch`, which shows a GPU process's drawing in the browser window another process owns, and DXMT for Direct3D 10/11. Battle.net, Epic and GOG keep the CX engine unchanged. The EA app updates itself on its first start; if its window then stays empty, quit it and open it again.
### GOG GALAXY
diff --git a/README.zh.md b/README.zh.md
index f047edb65ef..c8cf0992e3c 100644
--- a/README.zh.md
+++ b/README.zh.md
@@ -8,7 +8,7 @@ Soju 在 M1 及更新的 Mac 上安装 **Battle.net、Steam、Epic Games、GOG G
![Soju 统一游戏库](docs/assets/soju-library.png)
-**[下载 Soju 1.14.21(Mac)](https://github.com/BCD1210/soju/releases/download/v1.14.21/Soju-1.14.21-macos-arm64.zip)**,或在终端安装:
+**[下载 Soju 1.14.22(Mac)](https://github.com/BCD1210/soju/releases/download/v1.14.22/Soju-1.14.22-macos-arm64.zip)**,或在终端安装:
```bash
brew install BCD1210/soju/soju
@@ -83,7 +83,7 @@ soju install # 然后:soju battlenet / soju d2r / soju steam / soju epic /
安装器会**先询问要安装哪些启动器,再下载对应组件**。仅选择 Steam 时,不会下载 CX 引擎或 Apple GPTK。Steam 图形组件经过 SHA-256 校验后,自动安装到 Soju 专用的 Wine 11.0 环境中。战网、Epic 和 GOG 使用共享 CX 引擎及用户单独下载的 Apple GPTK。各客户端的 bottle、账户和游戏分别保留。
-[下载 Soju Mac 应用](https://github.com/BCD1210/soju/releases/download/v1.14.21/Soju-1.14.21-macos-arm64.zip):原生桌面预览版在一个窗口中管理已安装和已拥有的游戏、商店搜索、收藏、游戏启动和平台管理。[安装说明与要求](docs/DESKTOP.md)。
+[下载 Soju Mac 应用](https://github.com/BCD1210/soju/releases/download/v1.14.22/Soju-1.14.22-macos-arm64.zip):原生桌面预览版在一个窗口中管理已安装和已拥有的游戏、商店搜索、收藏、游戏启动和平台管理。[安装说明与要求](docs/DESKTOP.md)。
## 日常维护
@@ -172,7 +172,7 @@ soju ea # 或 rockstar / ubisoft:登录、安装和游玩
soju ea-kill # 或 rockstar-kill / ubisoft-kill
```
-2026-11-10 验证:三个客户端都能安装并打开登录窗口(未登录账户,游戏尚未测试)。它们的窗口是 Chromium 浏览器,GPU 进程把画面画到另一个进程的窗口里,Wine 的 Mac 驱动无法显示,所以在 CX 引擎上窗口是白色或黑色。因此它们运行在第二个引擎上:在你的 Mac 上从 CX 引擎克隆(APFS 克隆,不额外占用空间),再加上 launcher-support 组件,即带 `patches/winemac-cross-process-swapchains.patch`(来自 Highball,Wine bug 60263)的 Mac 驱动,以及可跨进程显示的 Direct3D 10/11 DXMT。战网、Epic 和 GOG 仍使用原来的 CX 引擎。EA app 首次启动会自我更新;之后如果窗口是空的,退出再打开即可。
+2026-11-10 验证:三个客户端都能安装并打开登录窗口(未登录账户,游戏尚未测试)。它们的窗口是 Chromium 浏览器,GPU 进程把画面画到另一个进程的窗口里,Wine 的 Mac 驱动无法显示,所以在 CX 引擎上窗口是白色或黑色。因此它们运行在第二个引擎上:在你的 Mac 上从 CX 引擎克隆(APFS 克隆,不额外占用空间),再加上 launcher-support 组件,即带 Soju 补丁 `patches/engine/0007-remote-child-layers.patch`(把 GPU 进程画的内容显示在另一个进程的浏览器窗口里)的 Mac 驱动,以及 Direct3D 10/11 DXMT。战网、Epic 和 GOG 仍使用原来的 CX 引擎。EA app 首次启动会自我更新;之后如果窗口是空的,退出再打开即可。
### GOG GALAXY
diff --git a/VERSION b/VERSION
index dad6733e8cd..1da1d679885 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-1.14.21
+1.14.22
diff --git a/docs/DESKTOP.md b/docs/DESKTOP.md
index b47a0e292f0..89973e992cf 100644
--- a/docs/DESKTOP.md
+++ b/docs/DESKTOP.md
@@ -1,6 +1,6 @@
# Soju for Mac
-[Download v1.14.21](https://github.com/BCD1210/soju/releases/download/v1.14.21/Soju-1.14.21-macos-arm64.zip)
+[Download v1.14.22](https://github.com/BCD1210/soju/releases/download/v1.14.22/Soju-1.14.22-macos-arm64.zip)
1. Unzip and move **Soju.app** into Applications or ~/Applications.
2. Open **Platforms** to install or open Battle.net, Steam, Epic Games or GOG GALAXY.
diff --git a/docs/STEAM-GAMES.md b/docs/STEAM-GAMES.md
index 6ac0e6c8741..54648d448ca 100644
--- a/docs/STEAM-GAMES.md
+++ b/docs/STEAM-GAMES.md
@@ -11,7 +11,7 @@ Verified 2026-11-11 on M4 Pro / macOS 26.5: the Steam client signs in and
downloads on the CX engine, and Overwatch 2 from Steam reaches its main menu
online with D3DMetal. The CX engine's problem below turned out to be the Mac
driver, not the engine: with `winemac.so` built from
-`patches/winemac-cross-process-swapchains.patch` (the launcher-support
+`patches/engine/0007-remote-child-layers.patch` (the launcher-support
component the EA app, Rockstar and Ubisoft already use) and the same
steamwebhelper wrapper, Steam's window draws. `scripts/steam-gptk-engine.sh`
makes that engine as an APFS clone of the CX engine with only `winemac.so`
diff --git a/docs/index.html b/docs/index.html
index 67005e8171e..80c5baec83d 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -55,8 +55,8 @@
"@id": "https://didimlabs.com/#soju",
"name": "Soju",
"url": "https://didimlabs.com/",
- "downloadUrl": "https://github.com/BCD1210/soju/releases/download/v1.14.21/Soju-1.14.21-macos-arm64.zip",
- "softwareVersion": "1.14.21",
+ "downloadUrl": "https://github.com/BCD1210/soju/releases/download/v1.14.22/Soju-1.14.22-macos-arm64.zip",
+ "softwareVersion": "1.14.22",
"description": "Free, open-source Mac app that installs the official Windows launchers for Steam, Battle.net, Epic Games, GOG GALAXY, EA app, Rockstar Games Launcher, Ubisoft Connect and Xbox PC on Apple Silicon and shows every installed game in one library.",
"applicationCategory": "GameApplication",
"operatingSystem": "macOS 14 or later, Apple Silicon (M1 or newer)",
@@ -90,7 +90,7 @@
"@type": "HowToStep",
"position": 1,
"name": "Download the app",
- "text": "Soju-1.14.21-macos-arm64.zip. Unzip it and move Soju to Applications. Signing notes."
+ "text": "Soju-1.14.22-macos-arm64.zip. Unzip it and move Soju to Applications. Signing notes."
},
{
"@type": "HowToStep",
@@ -178,11 +178,11 @@
<a href="ko/" lang="ko" hreflang="ko">한국어</a>
</div></nav>
<main id="main">
-<link rel="preload" as="image" href="assets/soju-app-icon.png?v=20261111a"/><link rel="preload" as="image" href="assets/soju-library.png?v=20261111a" fetchPriority="high"/><header class="hero hero-home"><div class="hero-copy"><p class="eyebrow">Free and open source · Apple Silicon</p><h1 class="headline">Your Windows games, <strong>on your Mac.</strong></h1><p class="lead">A free Mac app for playing Windows games on Apple Silicon. It installs the real Steam, Battle.net, Epic, GOG GALAXY, EA app, Rockstar, Ubisoft Connect and Xbox PC launchers, keeps each in its own Wine setup, and lists every installed game in one library.</p><p class="actions"><a class="btn" href="https://github.com/BCD1210/soju/releases/download/v1.14.21/Soju-1.14.21-macos-arm64.zip">Download Soju 1.14.21</a><a class="btn secondary" href="#works">See what runs</a><a class="btn secondary" href="https://discord.gg/ttBDcF5ftz">Discord</a></p><p class="cmd"><code>brew install BCD1210/soju/soju</code></p><p class="meta">macOS 14+, M1 or newer · open source (GPL-3.0)</p><ul class="stores" aria-label="Launchers Soju installs"><li>Steam</li><li>Battle.net</li><li>Epic Games</li><li>GOG GALAXY</li><li>EA app</li><li>Rockstar</li><li>Ubisoft Connect</li><li>Xbox PC</li></ul></div><img src="assets/soju-app-icon.png?v=20261111a" alt="" width="640" height="640" class="hero-icon"/><div class="shot-wrap"><img src="assets/soju-library.png?v=20261111a" alt="Soju 1.10 library with Diablo II: Resurrected, Don&#x27;t Sell the Cat, Guilt Free, Hogwarts Legacy and other installed games" width="1140" height="780" class="shot" fetchPriority="high"/></div></header><section id="what" aria-labelledby="what-title"><h2 id="what-title">What it does</h2><div class="features"><div class="feature"><h3>Real launchers</h3><p>Battle.net, Epic and GOG share a Wine engine built from <a href="https://www.codeweavers.com/crossover/source">CodeWeavers&#x27; sources</a> with Apple&#x27;s D3DMetal. EA, Rockstar and Ubisoft run on a copy of it with DXMT. Steam gets its own Wine 11 setup with DXMT for D3D11 games.</p></div><div class="feature"><h3>One library</h3><p>Finds installed games across every launcher and imports the games you own on Steam and GOG.</p></div><div class="feature"><h3>Store search</h3><p>Searches Steam, GOG and Microsoft Store listings with prices for your region.</p></div><div class="feature"><h3>Xbox PC</h3><p>Experimental: imports owned and Game Pass games and downloads them through the <a href="https://github.com/xodus-gaming/xodus">Xodus</a> backend.</p></div></div><p>Logins, purchases and game updates stay with each store. Soju doesn&#x27;t bundle games or store clients, and it downloads Apple&#x27;s Game Porting Toolkit files during setup.</p></section><section id="works" aria-labelledby="works-title"><h2 id="works-title">Games we&#x27;ve run</h2><p class="intro">Tested on an M4 Pro Mac with macOS 26.5. Other games may or may not work: <a href="mac/">check a game</a> or <a href="https://github.com/BCD1210/soju/issues/new?template=compatibility.yml">report what you try</a>.</p><ul class="proof"><li class="proof-card"><span class="store">Battle.net</span><b>Diablo II: Resurrected</b><span class="pill plays">Plays</span><p class="result">Plays online. Needs macOS 26.4+. <a href="guides/diablo-2-resurrected-apple-silicon.html">Guide</a></p></li><li class="proof-card"><span class="store">Battle.net</span><b>StarCraft: Remastered</b><span class="pill plays">Plays</span><p class="result">A single-player match starts. Multiplayer not tried. <a href="guides/starcraft-remastered-apple-silicon.html">Guide</a></p></li><li class="proof-card"><span class="store">Battle.net</span><b>Diablo IV</b><span class="pill plays">Plays</span><p class="result">Free trial: character created and in the first area. Sound and frame rate not checked. <a href="guides/diablo-4-apple-silicon.html">Guide</a></p></li><li class="proof-card"><span class="store">Battle.net</span><b>Overwatch 2</b><span class="pill partial">Menu</span><p class="result">Signs in and reaches the online main menu. A match not tried yet. <a href="guides/overwatch-2-apple-silicon.html">Guide</a></p></li><li class="proof-card"><span class="store">Epic</span><b>Hogwarts Legacy</b><span class="pill plays">Plays</span><p class="result">Installs and plays with D3DMetal.</p></li><li class="proof-card"><span class="store">Steam</span><b>Guilt Free (Unity, D3D11)</b><span class="pill plays">Plays</span><p class="result">Plays with the DXMT setup. <a href="guides/steam-windows-client-apple-silicon.html">Guide</a></p></li><li class="proof-card"><span class="store">Xbox PC</span><b>Retro Classics</b><span class="pill partial">Menu only</span><p class="result">Reaches the main menu.</p></li><li class="proof-card"><span class="store">GOG</span><b>GOG GALAXY</b><span class="pill partial">Launcher only</span><p class="result">Login and library work; few games tried yet.</p></li></ul><p>Games with kernel-level anti-cheat won&#x27;t run. The Steam edition of Diablo II: Resurrected hasn&#x27;t been checked.</p><figure class="video"><video controls="" playsInline="" preload="none" poster="assets/soju-gameplay-demo-poster.jpg?v=20261111a" aria-label="30-second clip of Hogwarts Legacy and Guilt Free running through Soju" width="1280" height="720"><source src="assets/soju-gameplay-demo.mp4?v=20261111a" type="video/mp4"/><track kind="captions" src="assets/soju-gameplay-demo.vtt" srcLang="en" label="English" default=""/></video><figcaption>Hogwarts Legacy through Epic, Guilt Free through Steam. 30 seconds.</figcaption></figure></section><section id="store" aria-labelledby="store-title"><h2 id="store-title">Games from Didim Labs</h2><a class="game" href="games/dont-sell-the-cat.html"><img src="store/dont-sell-the-cat-wide.jpg" alt="Don&#x27;t Sell the Cat: a black cat with yellow eyes on a pawnshop counter" width="920" height="430" loading="lazy"/><span class="game-body"><b>Don&#x27;t Sell the Cat</b><span class="game-meta">$2.99 · Mac and Windows · about 2 hours</span><span>Seven nights at a 1958 pawnshop counter. Check items with a loupe, UV lamp, scale and the shop cat, and don&#x27;t open the back shutter.</span></span></a></section><section id="install" aria-labelledby="install-title"><h2 id="install-title">Install</h2><ol class="steps row"><li><b>Download the app</b><p><a href="https://github.com/BCD1210/soju/releases/download/v1.14.21/Soju-1.14.21-macos-arm64.zip">Soju-1.14.21-macos-arm64.zip</a>. Unzip it and move Soju to Applications. <a href="https://github.com/BCD1210/soju/blob/main/docs/DESKTOP.md">Signing notes</a>.</p></li><li><b>Pick launchers</b><p>Open Soju, go to Platforms and choose the launchers you use. Battle.net, Epic and GOG also use <a href="https://developer.apple.com/games/game-porting-toolkit/">Apple&#x27;s Game Porting Toolkit</a>; Soju downloads Apple&#x27;s files and checks Apple&#x27;s signature before installing them.</p></li><li><b>Sign in and play</b><p>Sign in inside each launcher as usual. Installed games show up in the library.</p></li></ol><p>Prefer the terminal? Run the installer, or use Homebrew. You&#x27;ll need Rosetta 2, the Xcode Command Line Tools and Homebrew.</p><pre><code>curl -fsSL https://didimlabs.com/install.sh | bash
+<link rel="preload" as="image" href="assets/soju-app-icon.png?v=20261111a"/><link rel="preload" as="image" href="assets/soju-library.png?v=20261111a" fetchPriority="high"/><header class="hero hero-home"><div class="hero-copy"><p class="eyebrow">Free and open source · Apple Silicon</p><h1 class="headline">Your Windows games, <strong>on your Mac.</strong></h1><p class="lead">A free Mac app for playing Windows games on Apple Silicon. It installs the real Steam, Battle.net, Epic, GOG GALAXY, EA app, Rockstar, Ubisoft Connect and Xbox PC launchers, keeps each in its own Wine setup, and lists every installed game in one library.</p><p class="actions"><a class="btn" href="https://github.com/BCD1210/soju/releases/download/v1.14.22/Soju-1.14.22-macos-arm64.zip">Download Soju 1.14.22</a><a class="btn secondary" href="#works">See what runs</a><a class="btn secondary" href="https://discord.gg/ttBDcF5ftz">Discord</a></p><p class="cmd"><code>brew install BCD1210/soju/soju</code></p><p class="meta">macOS 14+, M1 or newer · open source (GPL-3.0)</p><ul class="stores" aria-label="Launchers Soju installs"><li>Steam</li><li>Battle.net</li><li>Epic Games</li><li>GOG GALAXY</li><li>EA app</li><li>Rockstar</li><li>Ubisoft Connect</li><li>Xbox PC</li></ul></div><img src="assets/soju-app-icon.png?v=20261111a" alt="" width="640" height="640" class="hero-icon"/><div class="shot-wrap"><img src="assets/soju-library.png?v=20261111a" alt="Soju 1.10 library with Diablo II: Resurrected, Don&#x27;t Sell the Cat, Guilt Free, Hogwarts Legacy and other installed games" width="1140" height="780" class="shot" fetchPriority="high"/></div></header><section id="what" aria-labelledby="what-title"><h2 id="what-title">What it does</h2><div class="features"><div class="feature"><h3>Real launchers</h3><p>Battle.net, Epic and GOG share a Wine engine built from <a href="https://www.codeweavers.com/crossover/source">CodeWeavers&#x27; sources</a> with Apple&#x27;s D3DMetal. EA, Rockstar and Ubisoft run on a copy of it with DXMT. Steam gets its own Wine 11 setup with DXMT for D3D11 games.</p></div><div class="feature"><h3>One library</h3><p>Finds installed games across every launcher and imports the games you own on Steam and GOG.</p></div><div class="feature"><h3>Store search</h3><p>Searches Steam, GOG and Microsoft Store listings with prices for your region.</p></div><div class="feature"><h3>Xbox PC</h3><p>Experimental: imports owned and Game Pass games and downloads them through the <a href="https://github.com/xodus-gaming/xodus">Xodus</a> backend.</p></div></div><p>Logins, purchases and game updates stay with each store. Soju doesn&#x27;t bundle games or store clients, and it downloads Apple&#x27;s Game Porting Toolkit files during setup.</p></section><section id="works" aria-labelledby="works-title"><h2 id="works-title">Games we&#x27;ve run</h2><p class="intro">Tested on an M4 Pro Mac with macOS 26.5. Other games may or may not work: <a href="mac/">check a game</a> or <a href="https://github.com/BCD1210/soju/issues/new?template=compatibility.yml">report what you try</a>.</p><ul class="proof"><li class="proof-card"><span class="store">Battle.net</span><b>Diablo II: Resurrected</b><span class="pill plays">Plays</span><p class="result">Plays online. Needs macOS 26.4+. <a href="guides/diablo-2-resurrected-apple-silicon.html">Guide</a></p></li><li class="proof-card"><span class="store">Battle.net</span><b>StarCraft: Remastered</b><span class="pill plays">Plays</span><p class="result">A single-player match starts. Multiplayer not tried. <a href="guides/starcraft-remastered-apple-silicon.html">Guide</a></p></li><li class="proof-card"><span class="store">Battle.net</span><b>Diablo IV</b><span class="pill plays">Plays</span><p class="result">Free trial: character created and in the first area. Sound and frame rate not checked. <a href="guides/diablo-4-apple-silicon.html">Guide</a></p></li><li class="proof-card"><span class="store">Battle.net</span><b>Overwatch 2</b><span class="pill partial">Menu</span><p class="result">Signs in and reaches the online main menu. A match not tried yet. <a href="guides/overwatch-2-apple-silicon.html">Guide</a></p></li><li class="proof-card"><span class="store">Epic</span><b>Hogwarts Legacy</b><span class="pill plays">Plays</span><p class="result">Installs and plays with D3DMetal.</p></li><li class="proof-card"><span class="store">Steam</span><b>Guilt Free (Unity, D3D11)</b><span class="pill plays">Plays</span><p class="result">Plays with the DXMT setup. <a href="guides/steam-windows-client-apple-silicon.html">Guide</a></p></li><li class="proof-card"><span class="store">Xbox PC</span><b>Retro Classics</b><span class="pill partial">Menu only</span><p class="result">Reaches the main menu.</p></li><li class="proof-card"><span class="store">GOG</span><b>GOG GALAXY</b><span class="pill partial">Launcher only</span><p class="result">Login and library work; few games tried yet.</p></li></ul><p>Games with kernel-level anti-cheat won&#x27;t run. The Steam edition of Diablo II: Resurrected hasn&#x27;t been checked.</p><figure class="video"><video controls="" playsInline="" preload="none" poster="assets/soju-gameplay-demo-poster.jpg?v=20261111a" aria-label="30-second clip of Hogwarts Legacy and Guilt Free running through Soju" width="1280" height="720"><source src="assets/soju-gameplay-demo.mp4?v=20261111a" type="video/mp4"/><track kind="captions" src="assets/soju-gameplay-demo.vtt" srcLang="en" label="English" default=""/></video><figcaption>Hogwarts Legacy through Epic, Guilt Free through Steam. 30 seconds.</figcaption></figure></section><section id="store" aria-labelledby="store-title"><h2 id="store-title">Games from Didim Labs</h2><a class="game" href="games/dont-sell-the-cat.html"><img src="store/dont-sell-the-cat-wide.jpg" alt="Don&#x27;t Sell the Cat: a black cat with yellow eyes on a pawnshop counter" width="920" height="430" loading="lazy"/><span class="game-body"><b>Don&#x27;t Sell the Cat</b><span class="game-meta">$2.99 · Mac and Windows · about 2 hours</span><span>Seven nights at a 1958 pawnshop counter. Check items with a loupe, UV lamp, scale and the shop cat, and don&#x27;t open the back shutter.</span></span></a></section><section id="install" aria-labelledby="install-title"><h2 id="install-title">Install</h2><ol class="steps row"><li><b>Download the app</b><p><a href="https://github.com/BCD1210/soju/releases/download/v1.14.22/Soju-1.14.22-macos-arm64.zip">Soju-1.14.22-macos-arm64.zip</a>. Unzip it and move Soju to Applications. <a href="https://github.com/BCD1210/soju/blob/main/docs/DESKTOP.md">Signing notes</a>.</p></li><li><b>Pick launchers</b><p>Open Soju, go to Platforms and choose the launchers you use. Battle.net, Epic and GOG also use <a href="https://developer.apple.com/games/game-porting-toolkit/">Apple&#x27;s Game Porting Toolkit</a>; Soju downloads Apple&#x27;s files and checks Apple&#x27;s signature before installing them.</p></li><li><b>Sign in and play</b><p>Sign in inside each launcher as usual. Installed games show up in the library.</p></li></ol><p>Prefer the terminal? Run the installer, or use Homebrew. You&#x27;ll need Rosetta 2, the Xcode Command Line Tools and Homebrew.</p><pre><code>curl -fsSL https://didimlabs.com/install.sh | bash
# or
brew install BCD1210/soju/soju
-soju install</code></pre><p><code>soju doctor</code> checks the setup; <code>soju update</code> updates it.</p></section><section id="faq" aria-labelledby="faq-title"><h2 id="faq-title">FAQ</h2><div class="faq"><details open=""><summary>Can I play Windows games on an M1, M2, M3 or M4 Mac with Soju?</summary><p>Often, yes. Soju runs the Windows launchers through Wine with Apple&#x27;s D3DMetal or DXMT. Diablo II: Resurrected, Hogwarts Legacy and Guilt Free have been played on an M4 Pro with macOS 26.5. Games with kernel anti-cheat do not run.</p></details><details><summary>Is Soju free?</summary><p>Yes. Soju is free and open source under GPL-3.0-or-later. You buy games from the stores as usual. Didim Labs also sells its own Mac games in Soju&#x27;s store tab.</p></details><details><summary>Which macOS version do I need?</summary><p>The Soju app needs macOS 14 or later on Apple Silicon. Steam games need macOS 26 or later, and Diablo II: Resurrected needs macOS 26.4 or later.</p></details><details><summary>Is Soju a Whisky or CrossOver alternative?</summary><p>It covers similar ground. Whisky is no longer developed and CrossOver is paid. Soju is free, focuses on the official store launchers, and builds its Wine engine from CodeWeavers&#x27; published sources.</p></details><details><summary>Does Soju need my store passwords?</summary><p>No. You sign in inside each official launcher. Library imports stay on your Mac and Soju has no account of its own.</p></details><details><summary>A game won&#x27;t start. What now?</summary><p>Run <code>soju doctor</code> (or <code>soju doctor d2r</code>), check the guides, then <a href="https://github.com/BCD1210/soju/issues">open an issue</a> with the game, your Mac, macOS version and what you see.</p></details></div></section><section class="cta"><img src="assets/soju-app-icon.png?v=20261111a" alt="" width="640" height="640" loading="lazy"/><h2>Try Soju on your Mac</h2><p>Free and open source. Download the app, pick the launchers you use, and tell us which games run.</p><p class="actions"><a class="btn" href="https://github.com/BCD1210/soju/releases/download/v1.14.21/Soju-1.14.21-macos-arm64.zip">Download Soju 1.14.21</a><a class="btn secondary" href="https://github.com/BCD1210/soju">GitHub</a><a class="btn secondary" href="https://discord.gg/ttBDcF5ftz">Discord</a></p></section><section id="news" aria-labelledby="news-title"><h2 id="news-title">News</h2><form class="notify" data-sent="Thanks. One email when it&#x27;s out, nothing else." data-failed="Couldn&#x27;t save that. Try again later." action="/api/notify" method="post"><label>Didim Labs makes small games for Mac and PC. Get one email when the next one is out<span class="notify-row"><input type="email" required="" maxLength="200" autoComplete="email" placeholder="[email protected]" name="email"/><button class="btn" type="submit">Email me</button></span></label><input type="hidden" name="source" value="home"/><input tabindex="-1" autoComplete="off" class="hp" aria-hidden="true" name="website"/><span class="form-status" role="status" aria-live="polite"></span></form><script>document.querySelectorAll('form.notify').forEach(function(f){if(f.dataset.on)return;f.dataset.on=1;var s=f.querySelector('.form-status'),b=f.querySelector('button');
+soju install</code></pre><p><code>soju doctor</code> checks the setup; <code>soju update</code> updates it.</p></section><section id="faq" aria-labelledby="faq-title"><h2 id="faq-title">FAQ</h2><div class="faq"><details open=""><summary>Can I play Windows games on an M1, M2, M3 or M4 Mac with Soju?</summary><p>Often, yes. Soju runs the Windows launchers through Wine with Apple&#x27;s D3DMetal or DXMT. Diablo II: Resurrected, Hogwarts Legacy and Guilt Free have been played on an M4 Pro with macOS 26.5. Games with kernel anti-cheat do not run.</p></details><details><summary>Is Soju free?</summary><p>Yes. Soju is free and open source under GPL-3.0-or-later. You buy games from the stores as usual. Didim Labs also sells its own Mac games in Soju&#x27;s store tab.</p></details><details><summary>Which macOS version do I need?</summary><p>The Soju app needs macOS 14 or later on Apple Silicon. Steam games need macOS 26 or later, and Diablo II: Resurrected needs macOS 26.4 or later.</p></details><details><summary>Is Soju a Whisky or CrossOver alternative?</summary><p>It covers similar ground. Whisky is no longer developed and CrossOver is paid. Soju is free, focuses on the official store launchers, and builds its Wine engine from CodeWeavers&#x27; published sources.</p></details><details><summary>Does Soju need my store passwords?</summary><p>No. You sign in inside each official launcher. Library imports stay on your Mac and Soju has no account of its own.</p></details><details><summary>A game won&#x27;t start. What now?</summary><p>Run <code>soju doctor</code> (or <code>soju doctor d2r</code>), check the guides, then <a href="https://github.com/BCD1210/soju/issues">open an issue</a> with the game, your Mac, macOS version and what you see.</p></details></div></section><section class="cta"><img src="assets/soju-app-icon.png?v=20261111a" alt="" width="640" height="640" loading="lazy"/><h2>Try Soju on your Mac</h2><p>Free and open source. Download the app, pick the launchers you use, and tell us which games run.</p><p class="actions"><a class="btn" href="https://github.com/BCD1210/soju/releases/download/v1.14.22/Soju-1.14.22-macos-arm64.zip">Download Soju 1.14.22</a><a class="btn secondary" href="https://github.com/BCD1210/soju">GitHub</a><a class="btn secondary" href="https://discord.gg/ttBDcF5ftz">Discord</a></p></section><section id="news" aria-labelledby="news-title"><h2 id="news-title">News</h2><form class="notify" data-sent="Thanks. One email when it&#x27;s out, nothing else." data-failed="Couldn&#x27;t save that. Try again later." action="/api/notify" method="post"><label>Didim Labs makes small games for Mac and PC. Get one email when the next one is out<span class="notify-row"><input type="email" required="" maxLength="200" autoComplete="email" placeholder="[email protected]" name="email"/><button class="btn" type="submit">Email me</button></span></label><input type="hidden" name="source" value="home"/><input tabindex="-1" autoComplete="off" class="hp" aria-hidden="true" name="website"/><span class="form-status" role="status" aria-live="polite"></span></form><script>document.querySelectorAll('form.notify').forEach(function(f){if(f.dataset.on)return;f.dataset.on=1;var s=f.querySelector('.form-status'),b=f.querySelector('button');
f.addEventListener('submit',function(e){e.preventDefault();b.disabled=true;fetch(f.action,{method:'POST',body:new FormData(f)}).then(function(r){return r.json().then(function(j){return {ok:r.ok,j:j};});})
.then(function(x){b.disabled=false;if(x.ok){f.reset();s.textContent=f.dataset.sent;}else{s.textContent=(x.j&&x.j.error)||f.dataset.failed;}}).catch(function(){b.disabled=false;s.textContent=f.dataset.failed;});});});</script></section>
</main>
diff --git a/docs/ko/index.html b/docs/ko/index.html
index a12c1f5f2de..241daa13b85 100644
--- a/docs/ko/index.html
+++ b/docs/ko/index.html
@@ -36,7 +36,7 @@
"@type": "HowToStep",
"position": 1,
"name": "앱 받기",
- "text": "Soju-1.14.21-macos-arm64.zip을 받아 압축을 풀고 응용 프로그램 폴더로 옮깁니다."
+ "text": "Soju-1.14.22-macos-arm64.zip을 받아 압축을 풀고 응용 프로그램 폴더로 옮깁니다."
},
{
"@type": "HowToStep",
@@ -115,11 +115,11 @@
<a href="../" lang="en" hreflang="en">English</a>
</div></nav>
<main id="main">
-<link rel="preload" as="image" href="../assets/soju-app-icon.png?v=20261111a"/><link rel="preload" as="image" href="../assets/soju-library.png?v=20261111a" fetchPriority="high"/><header class="hero hero-home"><div class="hero-copy"><p class="eyebrow">무료 · 오픈소스 · 애플 실리콘 맥</p><h1 class="headline">윈도우 게임을 <strong>맥에서.</strong></h1><p class="lead">애플 실리콘 맥에서 윈도우 게임을 하기 위한 무료 맥 앱입니다. 진짜 스팀, 배틀넷, 에픽, GOG GALAXY, EA 앱, 락스타, 유비소프트 커넥트, Xbox PC 런처를 각각 따로 된 Wine 환경에 설치하고, 설치된 게임을 한 라이브러리에 모아 보여 줍니다.</p><p class="actions"><a class="btn" href="https://github.com/BCD1210/soju/releases/download/v1.14.21/Soju-1.14.21-macos-arm64.zip">소주 1.14.21 다운로드</a><a class="btn secondary" href="#works">실행해 본 게임</a><a class="btn secondary" href="https://discord.gg/ttBDcF5ftz">디스코드</a></p><p class="cmd"><code>brew install BCD1210/soju/soju</code></p><p class="meta">macOS 14 이상, M1 이상 · 오픈소스(GPL-3.0)</p><ul class="stores" aria-label="소주가 설치하는 런처"><li>스팀</li><li>배틀넷</li><li>에픽게임즈</li><li>GOG GALAXY</li><li>EA app</li><li>Rockstar</li><li>Ubisoft Connect</li><li>Xbox PC</li></ul></div><img src="../assets/soju-app-icon.png?v=20261111a" alt="" width="640" height="640" class="hero-icon"/><div class="shot-wrap"><img src="../assets/soju-library.png?v=20261111a" alt="디아블로 II: 레저렉션, 고양이는 팔지 마세요, Guilt Free, 호그와트 레거시가 있는 소주 1.10 라이브러리" width="1140" height="780" class="shot" fetchPriority="high"/></div></header><section id="what" aria-labelledby="what-title"><h2 id="what-title">하는 일</h2><div class="features"><div class="feature"><h3>진짜 런처</h3><p>배틀넷·에픽·GOG는 <a href="https://www.codeweavers.com/crossover/source">CodeWeavers 소스</a>로 만든 Wine 엔진과 애플 D3DMetal을 같이 씁니다. 스팀은 D3D11 게임용 DXMT가 들어간 Wine 11 환경을 따로 씁니다.</p></div><div class="feature"><h3>라이브러리 하나</h3><p>모든 런처에 설치된 게임을 찾고, 스팀과 GOG에서 산 게임 목록을 가져옵니다.</p></div><div class="feature"><h3>스토어 검색</h3><p>스팀, GOG, 마이크로소프트 스토어를 지역 가격으로 검색합니다.</p></div><div class="feature"><h3>Xbox PC</h3><p>실험 기능입니다. 보유 게임과 게임 패스 게임을 가져와 Xodus 백엔드로 내려받습니다.</p></div></div><p>로그인, 구매, 게임 업데이트는 각 스토어가 그대로 맡습니다. 소주는 게임, 스토어 프로그램, 애플 게임 포팅 툴킷을 포함하지 않습니다.</p></section><section id="works" aria-labelledby="works-title"><h2 id="works-title">직접 실행해 본 게임</h2><p class="intro">M4 Pro 맥, macOS 26.5에서 확인했습니다. 다른 게임은 해 보기 전에는 모릅니다. <a href="mac/">게임별로 되는지 보기</a> · <a href="https://github.com/BCD1210/soju/issues/new?template=compatibility.yml">결과를 알려 주세요</a>.</p><ul class="proof"><li class="proof-card"><span class="store">배틀넷</span><b>디아블로 II: 레저렉션</b><span class="pill plays">플레이 됨</span><p class="result">온라인 플레이 됨. macOS 26.4 이상. <a href="../guides/ko/diablo-2-mac.html">가이드</a></p></li><li class="proof-card"><span class="store">배틀넷</span><b>스타크래프트: 리마스터</b><span class="pill plays">플레이 됨</span><p class="result">컴퓨터 상대 싱글 대전 시작까지 확인. 멀티플레이는 미확인. <a href="../guides/ko/starcraft-mac.html">가이드</a></p></li><li class="proof-card"><span class="store">Battle.net</span><b>디아블로 4</b><span class="pill plays">플레이 됨</span><p class="result">무료 체험판으로 캐릭터 생성, 첫 지역 진입까지 확인. 소리와 프레임은 미확인. <a href="../guides/ko/diablo-4-mac.html">가이드</a></p></li><li class="proof-card"><span class="store">Battle.net</span><b>오버워치 2</b><span class="pill partial">메뉴까지</span><p class="result">로그인 후 온라인 메인 메뉴까지 확인. 경기는 아직. <a href="../guides/ko/overwatch-2-mac.html">가이드</a></p></li><li class="proof-card"><span class="store">에픽</span><b>호그와트 레거시</b><span class="pill plays">플레이 됨</span><p class="result">D3DMetal로 설치·플레이 됨</p></li><li class="proof-card"><span class="store">스팀</span><b>Guilt Free (Unity, D3D11)</b><span class="pill plays">플레이 됨</span><p class="result">DXMT 설정으로 플레이 됨</p></li><li class="proof-card"><span class="store">Xbox PC</span><b>Retro Classics</b><span class="pill partial">메뉴까지</span><p class="result">메인 화면까지 실행</p></li><li class="proof-card"><span class="store">GOG</span><b>GOG GALAXY</b><span class="pill partial">런처만</span><p class="result">로그인·라이브러리 됨, 게임은 아직 조금만 시험</p></li></ul><p>커널 안티치트를 쓰는 게임은 실행되지 않습니다.</p></section><section id="store" aria-labelledby="store-title"><h2 id="store-title">Didim Labs 게임</h2><a class="game" href="../games/dont-sell-the-cat.html#ko"><img src="../store/dont-sell-the-cat-wide.jpg" alt="고양이는 팔지 마세요: 전당포 카운터 위의 노란 눈 검은 고양이" width="920" height="430" loading="lazy"/><span class="game-body"><b>고양이는 팔지 마세요</b><span class="game-meta">$2.99 · 맥·윈도우 · 약 2시간</span><span>1958년 전당포 야간 카운터에서 보내는 일곱 밤. 확대경, UV 램프, 저울, 가게 고양이로 물건을 확인하고, 뒷문 셔터는 열지 마세요.</span></span></a></section><section id="install" aria-labelledby="install-title"><h2 id="install-title">설치</h2><ol class="steps row"><li><b>앱 받기</b><p><a href="https://github.com/BCD1210/soju/releases/download/v1.14.21/Soju-1.14.21-macos-arm64.zip">Soju-1.14.21-macos-arm64.zip</a>을 받아 압축을 풀고 응용 프로그램 폴더로 옮깁니다.</p></li><li><b>런처 고르기</b><p>소주를 열고 Platforms에서 쓰는 런처를 고릅니다. 배틀넷·에픽·GOG는 <a href="https://developer.apple.com/games/game-porting-toolkit/">애플 게임 포팅 툴킷</a>을 쓰는데, 소주가 애플 파일을 받아 애플 서명을 확인한 뒤 설치합니다.</p></li><li><b>로그인하고 플레이</b><p>각 런처에서 평소처럼 로그인하면 설치된 게임이 라이브러리에 나타납니다.</p></li></ol><p>터미널이 편하면 설치 스크립트나 Homebrew를 쓰세요. Rosetta 2, Xcode Command Line Tools, Homebrew가 필요합니다.</p><pre><code>curl -fsSL https://didimlabs.com/install.sh | bash
+<link rel="preload" as="image" href="../assets/soju-app-icon.png?v=20261111a"/><link rel="preload" as="image" href="../assets/soju-library.png?v=20261111a" fetchPriority="high"/><header class="hero hero-home"><div class="hero-copy"><p class="eyebrow">무료 · 오픈소스 · 애플 실리콘 맥</p><h1 class="headline">윈도우 게임을 <strong>맥에서.</strong></h1><p class="lead">애플 실리콘 맥에서 윈도우 게임을 하기 위한 무료 맥 앱입니다. 진짜 스팀, 배틀넷, 에픽, GOG GALAXY, EA 앱, 락스타, 유비소프트 커넥트, Xbox PC 런처를 각각 따로 된 Wine 환경에 설치하고, 설치된 게임을 한 라이브러리에 모아 보여 줍니다.</p><p class="actions"><a class="btn" href="https://github.com/BCD1210/soju/releases/download/v1.14.22/Soju-1.14.22-macos-arm64.zip">소주 1.14.22 다운로드</a><a class="btn secondary" href="#works">실행해 본 게임</a><a class="btn secondary" href="https://discord.gg/ttBDcF5ftz">디스코드</a></p><p class="cmd"><code>brew install BCD1210/soju/soju</code></p><p class="meta">macOS 14 이상, M1 이상 · 오픈소스(GPL-3.0)</p><ul class="stores" aria-label="소주가 설치하는 런처"><li>스팀</li><li>배틀넷</li><li>에픽게임즈</li><li>GOG GALAXY</li><li>EA app</li><li>Rockstar</li><li>Ubisoft Connect</li><li>Xbox PC</li></ul></div><img src="../assets/soju-app-icon.png?v=20261111a" alt="" width="640" height="640" class="hero-icon"/><div class="shot-wrap"><img src="../assets/soju-library.png?v=20261111a" alt="디아블로 II: 레저렉션, 고양이는 팔지 마세요, Guilt Free, 호그와트 레거시가 있는 소주 1.10 라이브러리" width="1140" height="780" class="shot" fetchPriority="high"/></div></header><section id="what" aria-labelledby="what-title"><h2 id="what-title">하는 일</h2><div class="features"><div class="feature"><h3>진짜 런처</h3><p>배틀넷·에픽·GOG는 <a href="https://www.codeweavers.com/crossover/source">CodeWeavers 소스</a>로 만든 Wine 엔진과 애플 D3DMetal을 같이 씁니다. 스팀은 D3D11 게임용 DXMT가 들어간 Wine 11 환경을 따로 씁니다.</p></div><div class="feature"><h3>라이브러리 하나</h3><p>모든 런처에 설치된 게임을 찾고, 스팀과 GOG에서 산 게임 목록을 가져옵니다.</p></div><div class="feature"><h3>스토어 검색</h3><p>스팀, GOG, 마이크로소프트 스토어를 지역 가격으로 검색합니다.</p></div><div class="feature"><h3>Xbox PC</h3><p>실험 기능입니다. 보유 게임과 게임 패스 게임을 가져와 Xodus 백엔드로 내려받습니다.</p></div></div><p>로그인, 구매, 게임 업데이트는 각 스토어가 그대로 맡습니다. 소주는 게임, 스토어 프로그램, 애플 게임 포팅 툴킷을 포함하지 않습니다.</p></section><section id="works" aria-labelledby="works-title"><h2 id="works-title">직접 실행해 본 게임</h2><p class="intro">M4 Pro 맥, macOS 26.5에서 확인했습니다. 다른 게임은 해 보기 전에는 모릅니다. <a href="mac/">게임별로 되는지 보기</a> · <a href="https://github.com/BCD1210/soju/issues/new?template=compatibility.yml">결과를 알려 주세요</a>.</p><ul class="proof"><li class="proof-card"><span class="store">배틀넷</span><b>디아블로 II: 레저렉션</b><span class="pill plays">플레이 됨</span><p class="result">온라인 플레이 됨. macOS 26.4 이상. <a href="../guides/ko/diablo-2-mac.html">가이드</a></p></li><li class="proof-card"><span class="store">배틀넷</span><b>스타크래프트: 리마스터</b><span class="pill plays">플레이 됨</span><p class="result">컴퓨터 상대 싱글 대전 시작까지 확인. 멀티플레이는 미확인. <a href="../guides/ko/starcraft-mac.html">가이드</a></p></li><li class="proof-card"><span class="store">Battle.net</span><b>디아블로 4</b><span class="pill plays">플레이 됨</span><p class="result">무료 체험판으로 캐릭터 생성, 첫 지역 진입까지 확인. 소리와 프레임은 미확인. <a href="../guides/ko/diablo-4-mac.html">가이드</a></p></li><li class="proof-card"><span class="store">Battle.net</span><b>오버워치 2</b><span class="pill partial">메뉴까지</span><p class="result">로그인 후 온라인 메인 메뉴까지 확인. 경기는 아직. <a href="../guides/ko/overwatch-2-mac.html">가이드</a></p></li><li class="proof-card"><span class="store">에픽</span><b>호그와트 레거시</b><span class="pill plays">플레이 됨</span><p class="result">D3DMetal로 설치·플레이 됨</p></li><li class="proof-card"><span class="store">스팀</span><b>Guilt Free (Unity, D3D11)</b><span class="pill plays">플레이 됨</span><p class="result">DXMT 설정으로 플레이 됨</p></li><li class="proof-card"><span class="store">Xbox PC</span><b>Retro Classics</b><span class="pill partial">메뉴까지</span><p class="result">메인 화면까지 실행</p></li><li class="proof-card"><span class="store">GOG</span><b>GOG GALAXY</b><span class="pill partial">런처만</span><p class="result">로그인·라이브러리 됨, 게임은 아직 조금만 시험</p></li></ul><p>커널 안티치트를 쓰는 게임은 실행되지 않습니다.</p></section><section id="store" aria-labelledby="store-title"><h2 id="store-title">Didim Labs 게임</h2><a class="game" href="../games/dont-sell-the-cat.html#ko"><img src="../store/dont-sell-the-cat-wide.jpg" alt="고양이는 팔지 마세요: 전당포 카운터 위의 노란 눈 검은 고양이" width="920" height="430" loading="lazy"/><span class="game-body"><b>고양이는 팔지 마세요</b><span class="game-meta">$2.99 · 맥·윈도우 · 약 2시간</span><span>1958년 전당포 야간 카운터에서 보내는 일곱 밤. 확대경, UV 램프, 저울, 가게 고양이로 물건을 확인하고, 뒷문 셔터는 열지 마세요.</span></span></a></section><section id="install" aria-labelledby="install-title"><h2 id="install-title">설치</h2><ol class="steps row"><li><b>앱 받기</b><p><a href="https://github.com/BCD1210/soju/releases/download/v1.14.22/Soju-1.14.22-macos-arm64.zip">Soju-1.14.22-macos-arm64.zip</a>을 받아 압축을 풀고 응용 프로그램 폴더로 옮깁니다.</p></li><li><b>런처 고르기</b><p>소주를 열고 Platforms에서 쓰는 런처를 고릅니다. 배틀넷·에픽·GOG는 <a href="https://developer.apple.com/games/game-porting-toolkit/">애플 게임 포팅 툴킷</a>을 쓰는데, 소주가 애플 파일을 받아 애플 서명을 확인한 뒤 설치합니다.</p></li><li><b>로그인하고 플레이</b><p>각 런처에서 평소처럼 로그인하면 설치된 게임이 라이브러리에 나타납니다.</p></li></ol><p>터미널이 편하면 설치 스크립트나 Homebrew를 쓰세요. Rosetta 2, Xcode Command Line Tools, Homebrew가 필요합니다.</p><pre><code>curl -fsSL https://didimlabs.com/install.sh | bash
# 또는
brew install BCD1210/soju/soju
-soju install</code></pre><p><code>soju doctor</code>로 설치 상태를 점검하고 <code>soju update</code>로 업데이트합니다.</p></section><section id="faq" aria-labelledby="faq-title"><h2 id="faq-title">자주 묻는 질문</h2><div class="faq"><details open=""><summary>M1·M2·M3·M4 맥에서 윈도우 게임을 할 수 있나요?</summary><p>게임에 따라 됩니다. 소주는 윈도우 런처를 Wine과 애플의 D3DMetal 또는 DXMT로 실행합니다. 디아블로 II: 레저렉션, 호그와트 레거시, Guilt Free를 M4 Pro·macOS 26.5에서 직접 플레이했습니다. 커널 안티치트를 쓰는 게임은 안 됩니다.</p></details><details><summary>소주는 무료인가요?</summary><p>네. GPL-3.0 오픈소스이고 무료입니다. 게임은 각 스토어에서 평소처럼 삽니다. Didim Labs가 만든 맥 게임은 소주 스토어 탭에서 팝니다.</p></details><details><summary>macOS 버전은 무엇이 필요한가요?</summary><p>소주 앱은 애플 실리콘 맥의 macOS 14 이상에서 돌아갑니다. 스팀 게임은 macOS 26 이상, 디아블로 II: 레저렉션은 macOS 26.4 이상이 필요합니다.</p></details><details><summary>위스키(Whisky)나 크로스오버 대신 쓸 수 있나요?</summary><p>비슷한 일을 합니다. 위스키는 개발이 멈췄고 크로스오버는 유료입니다. 소주는 무료이고, 공식 스토어 런처 실행에 맞춰져 있으며, CodeWeavers가 공개한 소스로 Wine 엔진을 만듭니다.</p></details><details><summary>게임이 안 켜지면요?</summary><p><code>soju doctor</code>(디아2는 <code>soju doctor d2r</code>)를 실행해 보고 가이드를 확인한 뒤, 게임·맥 기종·macOS 버전·증상을 적어 <a href="https://github.com/BCD1210/soju/issues">이슈를 남겨 주세요</a>.</p></details></div></section><section class="cta"><img src="../assets/soju-app-icon.png?v=20261111a" alt="" width="640" height="640" loading="lazy"/><h2>맥에서 바로 해 보세요</h2><p>소주는 무료 오픈소스입니다. 앱을 받아 쓰는 런처를 고르고, 어떤 게임이 되는지 알려 주세요.</p><p class="actions"><a class="btn" href="https://github.com/BCD1210/soju/releases/download/v1.14.21/Soju-1.14.21-macos-arm64.zip">소주 1.14.21 다운로드</a><a class="btn secondary" href="https://github.com/BCD1210/soju">GitHub</a><a class="btn secondary" href="https://discord.gg/ttBDcF5ftz">디스코드</a></p></section><section id="news" aria-labelledby="news-title"><h2 id="news-title">소식</h2><form class="notify" data-sent="감사합니다. 출시 때 한 번만 보냅니다." data-failed="저장하지 못했어요. 잠시 뒤 다시 해 주세요." action="/api/notify" method="post"><label>Didim Labs가 다음 게임을 내면 메일 한 통으로 알려 드릴게요<span class="notify-row"><input type="email" required="" maxLength="200" autoComplete="email" placeholder="[email protected]" name="email"/><button class="btn" type="submit">알림 받기</button></span></label><input type="hidden" name="source" value="home-ko"/><input tabindex="-1" autoComplete="off" class="hp" aria-hidden="true" name="website"/><span class="form-status" role="status" aria-live="polite"></span></form><script>document.querySelectorAll('form.notify').forEach(function(f){if(f.dataset.on)return;f.dataset.on=1;var s=f.querySelector('.form-status'),b=f.querySelector('button');
+soju install</code></pre><p><code>soju doctor</code>로 설치 상태를 점검하고 <code>soju update</code>로 업데이트합니다.</p></section><section id="faq" aria-labelledby="faq-title"><h2 id="faq-title">자주 묻는 질문</h2><div class="faq"><details open=""><summary>M1·M2·M3·M4 맥에서 윈도우 게임을 할 수 있나요?</summary><p>게임에 따라 됩니다. 소주는 윈도우 런처를 Wine과 애플의 D3DMetal 또는 DXMT로 실행합니다. 디아블로 II: 레저렉션, 호그와트 레거시, Guilt Free를 M4 Pro·macOS 26.5에서 직접 플레이했습니다. 커널 안티치트를 쓰는 게임은 안 됩니다.</p></details><details><summary>소주는 무료인가요?</summary><p>네. GPL-3.0 오픈소스이고 무료입니다. 게임은 각 스토어에서 평소처럼 삽니다. Didim Labs가 만든 맥 게임은 소주 스토어 탭에서 팝니다.</p></details><details><summary>macOS 버전은 무엇이 필요한가요?</summary><p>소주 앱은 애플 실리콘 맥의 macOS 14 이상에서 돌아갑니다. 스팀 게임은 macOS 26 이상, 디아블로 II: 레저렉션은 macOS 26.4 이상이 필요합니다.</p></details><details><summary>위스키(Whisky)나 크로스오버 대신 쓸 수 있나요?</summary><p>비슷한 일을 합니다. 위스키는 개발이 멈췄고 크로스오버는 유료입니다. 소주는 무료이고, 공식 스토어 런처 실행에 맞춰져 있으며, CodeWeavers가 공개한 소스로 Wine 엔진을 만듭니다.</p></details><details><summary>게임이 안 켜지면요?</summary><p><code>soju doctor</code>(디아2는 <code>soju doctor d2r</code>)를 실행해 보고 가이드를 확인한 뒤, 게임·맥 기종·macOS 버전·증상을 적어 <a href="https://github.com/BCD1210/soju/issues">이슈를 남겨 주세요</a>.</p></details></div></section><section class="cta"><img src="../assets/soju-app-icon.png?v=20261111a" alt="" width="640" height="640" loading="lazy"/><h2>맥에서 바로 해 보세요</h2><p>소주는 무료 오픈소스입니다. 앱을 받아 쓰는 런처를 고르고, 어떤 게임이 되는지 알려 주세요.</p><p class="actions"><a class="btn" href="https://github.com/BCD1210/soju/releases/download/v1.14.22/Soju-1.14.22-macos-arm64.zip">소주 1.14.22 다운로드</a><a class="btn secondary" href="https://github.com/BCD1210/soju">GitHub</a><a class="btn secondary" href="https://discord.gg/ttBDcF5ftz">디스코드</a></p></section><section id="news" aria-labelledby="news-title"><h2 id="news-title">소식</h2><form class="notify" data-sent="감사합니다. 출시 때 한 번만 보냅니다." data-failed="저장하지 못했어요. 잠시 뒤 다시 해 주세요." action="/api/notify" method="post"><label>Didim Labs가 다음 게임을 내면 메일 한 통으로 알려 드릴게요<span class="notify-row"><input type="email" required="" maxLength="200" autoComplete="email" placeholder="[email protected]" name="email"/><button class="btn" type="submit">알림 받기</button></span></label><input type="hidden" name="source" value="home-ko"/><input tabindex="-1" autoComplete="off" class="hp" aria-hidden="true" name="website"/><span class="form-status" role="status" aria-live="polite"></span></form><script>document.querySelectorAll('form.notify').forEach(function(f){if(f.dataset.on)return;f.dataset.on=1;var s=f.querySelector('.form-status'),b=f.querySelector('button');
f.addEventListener('submit',function(e){e.preventDefault();b.disabled=true;fetch(f.action,{method:'POST',body:new FormData(f)}).then(function(r){return r.json().then(function(j){return {ok:r.ok,j:j};});})
.then(function(x){b.disabled=false;if(x.ok){f.reset();s.textContent=f.dataset.sent;}else{s.textContent=(x.j&&x.j.error)||f.dataset.failed;}}).catch(function(){b.disabled=false;s.textContent=f.dataset.failed;});});});</script></section>
</main>
diff --git a/docs/llms.txt b/docs/llms.txt
index 4e844ec9c88..802a7f3f164 100644
--- a/docs/llms.txt
+++ b/docs/llms.txt
@@ -9,7 +9,7 @@
- [Soju home](https://didimlabs.com/): what Soju does, tested games, install steps, FAQ
- [Soju in Korean / 소주 한국어](https://didimlabs.com/ko/)
- [Game-by-game list](https://didimlabs.com/mac/): which Windows games were run in Soju, which are not checked yet, which anti-cheat blocks under Wine, and which have a Mac version. Korean: https://didimlabs.com/ko/mac/
-- [Source code and releases](https://github.com/BCD1210/soju): GPL-3.0-or-later; current version 1.14.21
+- [Source code and releases](https://github.com/BCD1210/soju): GPL-3.0-or-later; current version 1.14.22
- Supported launchers: Steam, Battle.net, Epic Games, GOG GALAXY, EA app, Rockstar Games Launcher and Ubisoft Connect (new in 1.11: install and sign-in verified, games not yet), Xbox PC (experimental). Needs an Apple Silicon Mac (M1 or newer) and macOS 14+; Steam games need macOS 26+; Diablo II: Resurrected needs macOS 26.4+.
- Tested on M4 Pro / macOS 26.5: Diablo II: Resurrected (Battle.net, online), Hogwarts Legacy (Epic, D3DMetal), StarCraft: Remastered (Battle.net, single-player match), Guilt Free (Steam, DXMT). Kernel anti-cheat games do not run.
- Install: `curl -fsSL https://didimlabs.com/install.sh | bash` or `brew install BCD1210/soju/soju`
diff --git a/install.sh b/install.sh
index 52d4bf15ce0..250f7300c05 100644
--- a/install.sh
+++ b/install.sh
@@ -21,8 +21,8 @@ say(){ printf '\n\033[1m%s\033[0m\n' "$*"; }
# The prebuilt engine is pinned: a new engine release only reaches users once
# these two lines (here and in scripts/update.sh) name it.
-ENGINE_TAG="engine-v1.8"
-ENGINE_SHA256="6e45b119cb01bf9e6ca8bca7cd1f1dd74a88611c6bb5146e33ec98cfc17a3dbf"
+ENGINE_TAG="engine-v1.9"
+ENGINE_SHA256="35daeaf595f906f2a6338dee05c953e133b820ffbd95beab3caf73ade6018d61"
ENGINE_URL="https://github.com/$REPO/releases/download/$ENGINE_TAG/wine-engine-x86_64.tar.xz"
# Download to a .part file and keep it only when its SHA-256 matches.
diff --git a/patches/dxmt-cross-process-window.patch b/patches/dxmt-cross-process-window.patch
new file mode 100644
index 00000000000..7f8c15f4945
--- /dev/null
+++ b/patches/dxmt-cross-process-window.patch
@@ -0,0 +1,25 @@
+Soju: DXMT accepts a swapchain on a window another process owns (Chromium's GPU process drawing
+for its browser process in the EA app, Rockstar Games Launcher and Ubisoft Connect); Soju's Wine
+Mac driver shows it in the owner's window (patches/engine/0007-remote-child-layers.patch).
+
+diff --git a/src/d3d11/d3d11_swapchain.cpp b/src/d3d11/d3d11_swapchain.cpp
+index 53559c8..40acbd5 100644
+--- a/src/d3d11/d3d11_swapchain.cpp
++++ b/src/d3d11/d3d11_swapchain.cpp
+@@ -1104,12 +1104,12 @@ CreateSwapChain(
+ return DXGI_ERROR_INVALID_CALL;
+ InitReturnPtr(ppSwapChain);
+
++ /* Soju: a window of another process (Chromium's GPU process drawing for its browser process) is
++ * allowed. Soju's Wine Mac driver gives such a window a layer that the window's owner shows. */
+ DWORD window_process_id;
+ GetWindowThreadProcessId(hWnd, &window_process_id);
+- if (GetProcessId(GetCurrentProcess()) != window_process_id) {
+- ERR("CreateSwapChain: cross-process swapchain not supported yet");
+- return E_FAIL;
+- }
++ if (GetProcessId(GetCurrentProcess()) != window_process_id)
++ WARN("CreateSwapChain: window belongs to process ", window_process_id, ", presenting through the Mac driver");
+
+ Com<IMTLDXGIDevice> layer_factory;
+ if (FAILED(pDevice->QueryInterface(IID_PPV_ARGS(&layer_factory)))) {
diff --git a/patches/engine/0001-msync-wait-cleanup.patch b/patches/engine/0001-msync-wait-cleanup.patch
new file mode 100644
index 00000000000..2b9d0d19e91
--- /dev/null
+++ b/patches/engine/0001-msync-wait-cleanup.patch
@@ -0,0 +1,63 @@
+Soju: msync (CrossOver's in-process sync): a multi-object wait that finds an object free while
+the wineserver is still registering it takes the registration back, like every other exit does.
+Before, each such race left the thread on the lists of the objects that were not signaled, the
+wineserver's node pool ran out ("msync: warn: node memory pool exhausted" on every allocation after)
+and it grew for as long as the game ran. The server also unregistered objects 0..i-1 only for i > 1,
+and the pool warning now prints once.
+
+diff --git a/dlls/ntdll/unix/msync.c b/dlls/ntdll/unix/msync.c
+index ae46bf3..0303a28 100644
+--- a/dlls/ntdll/unix/msync.c
++++ b/dlls/ntdll/unix/msync.c
+@@ -375,19 +375,13 @@ static NTSTATUS msync_wait_multiple( const int *objs, void **objs_shm, int alert
+
+ while (__atomic_load_n( addr, __ATOMIC_ACQUIRE ) == 2)
+ {
+- if (check_shm_contention( objs_shm, alert_obj_shm, count, tid ))
+- {
+- int i;
+- for (i = 0; i < count; i++)
+- {
+- struct event *obj = (struct event *)objs_shm[i];
+-
+- int refs = __atomic_sub_fetch( &obj->multiple_waiters, 1, __ATOMIC_SEQ_CST);
+- if (refs < 0)
+- __atomic_store_n( &obj->multiple_waiters, 0, __ATOMIC_SEQ_CST);
+- }
+- return STATUS_PENDING;
+- }
++ if (!check_shm_contention( objs_shm, alert_obj_shm, count, tid )) continue;
++ /* Soju: an object came free before the server answered. The registration is already on
++ * its way and the server keeps this thread on the objects it finds unsignaled, so take it
++ * back the same way the other exits do. Only lowering the waiter counts here left those
++ * entries behind, one per lost race, and the wineserver grew for as long as the game ran. */
++ server_remove_wait( msgh_id, objs, objs_shm, alert_obj, alert_obj_shm, count );
++ return STATUS_PENDING;
+ }
+
+ do
+diff --git a/server/msync.c b/server/msync.c
+index eecf9b3..7396313 100644
+--- a/server/msync.c
++++ b/server/msync.c
+@@ -177,7 +177,9 @@ static inline struct tid_node *pool_alloc(void)
+ {
+ if (pool->count == 0)
+ {
+- fprintf( stderr, "msync: warn: node memory pool exhausted\n" );
++ static unsigned int exhausted;
++ if (!exhausted++) /* Soju: say it once, not on every allocation after it */
++ fprintf( stderr, "msync: warn: node memory pool exhausted\n" );
+ return malloc( sizeof(struct tid_node) );
+ }
+ return pool->free_nodes[--pool->count];
+@@ -508,7 +510,8 @@ static void *mach_message_pump( void *args )
+ val = __atomic_load_n( &obj->low, __ATOMIC_SEQ_CST );
+ if ((is_mutex && (val == 0 || val == ~0 || val == tid)) || (!is_mutex && val != 0))
+ {
+- if (i > 1) unregister_wait( &receive_message, tid, i );
++ /* Soju: objects 0 .. i-1 were registered above, also when i is 1 */
++ if (i) unregister_wait( &receive_message, tid, i );
+ wake_tid( tid );
+ break;
+ }
diff --git a/patches/engine/0002-commit-charge-footprint.patch b/patches/engine/0002-commit-charge-footprint.patch
new file mode 100644
index 00000000000..f5ec983627c
--- /dev/null
+++ b/patches/engine/0002-commit-charge-footprint.patch
@@ -0,0 +1,29 @@
+Soju: on macOS a process's commit charge (PagefileUsage, PrivateUsage) is its memory footprint,
+not the size of its address space, which under Rosetta is tens of GB whatever the program uses.
+Games that compare it with RAM warned of low memory or lowered their textures.
+
+diff --git a/dlls/ntdll/unix/process.c b/dlls/ntdll/unix/process.c
+index 1f550a6..32dc934 100644
+--- a/dlls/ntdll/unix/process.c
++++ b/dlls/ntdll/unix/process.c
+@@ -1497,6 +1497,20 @@ void fill_vm_counters( VM_COUNTERS_EX *pvmi, int unix_pid )
+ pvmi->PeakWorkingSetSize = info.resident_size_max;
+ }
+ #endif
++#if defined(TASK_VM_INFO)
++ {
++ /* Soju: virtual_size is address space, tens of GB under Rosetta whatever the program
++ * uses, and games that compare the commit charge with RAM warn of low memory or cut
++ * their textures. Report what the kernel charges the task instead (its footprint, as
++ * Activity Monitor shows), like the RssAnon + VmSwap sum on Linux. */
++ task_vm_info_data_t vm;
++ mach_msg_type_number_t n = TASK_VM_INFO_COUNT;
++
++ if (unix_pid == -1 &&
++ task_info( mach_task_self(), TASK_VM_INFO, (task_info_t)&vm, &n ) == KERN_SUCCESS)
++ pvmi->PagefileUsage = pvmi->PeakPagefileUsage = vm.phys_footprint;
++ }
++#endif
+ }
+
+ #elif defined(linux)
diff --git a/patches/engine/0003-credenumerate-empty-keychain.patch b/patches/engine/0003-credenumerate-empty-keychain.patch
new file mode 100644
index 00000000000..baa0268fc41
--- /dev/null
+++ b/patches/engine/0003-credenumerate-empty-keychain.patch
@@ -0,0 +1,28 @@
+Soju: CredEnumerate() keeps the registry's matches when the macOS Keychain has none for the
+filter. Programs that keep their own generic credentials and look them up by prefix (Xbox sign-in
+keeps its device key so) never found them and asked to sign in at every launch.
+
+diff --git a/dlls/advapi32/cred.c b/dlls/advapi32/cred.c
+index dd8d7ce..b85b3a0 100644
+--- a/dlls/advapi32/cred.c
++++ b/dlls/advapi32/cred.c
+@@ -1059,7 +1059,9 @@ BOOL WINAPI CredEnumerateW(LPCWSTR Filter, DWORD Flags, DWORD *Count, PCREDENTIA
+ if (ret == ERROR_SUCCESS)
+ {
+ ret = host_enumerate_credentials(Filter, NULL, NULL, &len, Count);
+- if (ret == ERROR_NOT_SUPPORTED) ret = ERROR_SUCCESS;
++ /* Soju: the Keychain having no match (ERROR_NOT_FOUND on macOS) is no reason to drop
++ * the registry's matches; only an empty result overall is ERROR_NOT_FOUND. */
++ if (ret == ERROR_NOT_SUPPORTED || ret == ERROR_NOT_FOUND) ret = ERROR_SUCCESS;
+ }
+ if (ret == ERROR_SUCCESS && *Count == 0)
+ ret = ERROR_NOT_FOUND;
+@@ -1085,7 +1087,7 @@ BOOL WINAPI CredEnumerateW(LPCWSTR Filter, DWORD Flags, DWORD *Count, PCREDENTIA
+ if (ret == ERROR_SUCCESS)
+ {
+ ret = host_enumerate_credentials(Filter, *Credentials, buffer, &len, Count);
+- if (ret == ERROR_NOT_SUPPORTED) ret = ERROR_SUCCESS;
++ if (ret == ERROR_NOT_SUPPORTED || ret == ERROR_NOT_FOUND) ret = ERROR_SUCCESS;
+ }
+ }
+ else ret = ERROR_OUTOFMEMORY;
diff --git a/patches/engine/0004-retina-device-caps.patch b/patches/engine/0004-retina-device-caps.patch
new file mode 100644
index 00000000000..565a8a27495
--- /dev/null
+++ b/patches/engine/0004-retina-device-caps.patch
@@ -0,0 +1,26 @@
+Soju: winemac's GetDeviceCaps no longer doubles HORZRES and VERTRES in retina mode; they come
+back in pixels already, so they disagreed with GetSystemMetrics and EnumDisplaySettings.
+
+diff --git a/dlls/winemac.drv/gdi.c b/dlls/winemac.drv/gdi.c
+index 7342494..2f9b2c7 100644
+--- a/dlls/winemac.drv/gdi.c
++++ b/dlls/winemac.drv/gdi.c
+@@ -213,15 +213,12 @@ static INT macdrv_GetDeviceCaps(PHYSDEV dev, INT cap)
+ case VERTSIZE:
+ ret = vert_size;
+ break;
+- case HORZRES:
+- case VERTRES:
+ default:
++ /* Soju: HORZRES and VERTRES come back in pixels already, so doubling them in retina mode
++ * reported four times the screen area, unlike GetSystemMetrics and EnumDisplaySettings. */
+ pthread_mutex_unlock(&device_data_mutex);
+ dev = GET_NEXT_PHYSDEV( dev, pGetDeviceCaps );
+- ret = dev->funcs->pGetDeviceCaps( dev, cap );
+- if ((cap == HORZRES || cap == VERTRES) && retina_on)
+- ret *= 2;
+- return ret;
++ return dev->funcs->pGetDeviceCaps( dev, cap );
+ }
+
+ TRACE("cap %d -> %d\n", cap, ret);
diff --git a/patches/engine/0005-utc3-time-zones.patch b/patches/engine/0005-utc3-time-zones.patch
new file mode 100644
index 00000000000..8129ded4b17
--- /dev/null
+++ b/patches/engine/0005-utc3-time-zones.patch
@@ -0,0 +1,34 @@
+Soju: a Mac in a UTC+3 zone without daylight saving time gets its own Windows time zone, not
+the first UTC+3 zone in the registry (Arab Standard Time). Rockstar's sign-in refused a Mac in
+Istanbul that said it was in Riyadh.
+
+diff --git a/dlls/ntdll/unix/system.c b/dlls/ntdll/unix/system.c
+index 438e671..a4f09b2 100644
+--- a/dlls/ntdll/unix/system.c
++++ b/dlls/ntdll/unix/system.c
+@@ -2756,6 +2756,25 @@ static BOOL match_tz_name( const char *tz_name, const RTL_DYNAMIC_TIME_ZONE_INFO
+ "JST" },
+ { {'Y','a','k','u','t','s','k',' ','S','t','a','n','d','a','r','d',' ','T','i','m','e',0 },
+ "+09" }, /* YAKST was used until tzdata 2016f */
++ /* Soju: zones at UTC+3 all year. The first in the registry (Arab, Riyadh) used to win for
++ * all of them, and Rockstar's sign-in refuses a Mac in Istanbul that says Riyadh. Moscow
++ * and East Africa have abbreviations of their own; the rest say "+03" and differ by their
++ * past offsets: Amman and Damascus were still UTC+2 in winter 2020 (until 2022), Istanbul
++ * in winter 2015 (until 2016), while Riyadh, Baghdad and Minsk were UTC+3 at both. */
++ { {'R','u','s','s','i','a','n',' ','S','t','a','n','d','a','r','d',' ','T','i','m','e',0 }, "MSK" },
++ { {'E','.',' ','A','f','r','i','c','a',' ','S','t','a','n','d','a','r','d',' ','T','i','m','e',0 }, "EAT" },
++ { {'T','u','r','k','e','y',' ','S','t','a','n','d','a','r','d',' ','T','i','m','e',0 },
++ "+03", 1420070400 /* 2015-01-01 00:00:00 UTC */, -120 },
++ { {'J','o','r','d','a','n',' ','S','t','a','n','d','a','r','d',' ','T','i','m','e',0 },
++ "+03", 1577836800 /* 2020-01-01 00:00:00 UTC */, -120 },
++ { {'S','y','r','i','a',' ','S','t','a','n','d','a','r','d',' ','T','i','m','e',0 },
++ "+03", 1577836800, -120 },
++ { {'A','r','a','b',' ','S','t','a','n','d','a','r','d',' ','T','i','m','e',0 },
++ "+03", 1420070400, -180 },
++ { {'A','r','a','b','i','c',' ','S','t','a','n','d','a','r','d',' ','T','i','m','e',0 },
++ "+03", 1420070400, -180 },
++ { {'B','e','l','a','r','u','s',' ','S','t','a','n','d','a','r','d',' ','T','i','m','e',0 },
++ "+03", 1420070400, -180 },
+ };
+ unsigned int i;
+
diff --git a/patches/engine/0006-unowned-thread-faults.patch b/patches/engine/0006-unowned-thread-faults.patch
new file mode 100644
index 00000000000..2332133cb8e
--- /dev/null
+++ b/patches/engine/0006-unowned-thread-faults.patch
@@ -0,0 +1,144 @@
+Soju: a fault on a thread Wine did not create (Metal's and D3DMetal's dispatch workers have no
+TEB) no longer hangs the program at full CPU. Page faults Wine fixes on its own threads that need
+no TEB (Rosetta reporting writes as reads, pages Wine keeps writable and executable, write
+watches) are fixed and retried; anything else gets the default action, so the process crashes
+with a crash report that names the real fault.
+
+diff --git a/dlls/ntdll/unix/signal_x86_64.c b/dlls/ntdll/unix/signal_x86_64.c
+index 91926a8..d79dfbe 100644
+--- a/dlls/ntdll/unix/signal_x86_64.c
++++ b/dlls/ntdll/unix/signal_x86_64.c
+@@ -2490,6 +2490,36 @@ static inline BOOL check_invalid_gsbase( ucontext_t *ucontext )
+ }
+
+
++#ifdef __APPLE__
++/**********************************************************************
++ * unowned_thread_signal
++ *
++ * Soju: a SIGSEGV, SIGBUS, SIGTRAP or SIGFPE on a thread Wine did not create. The handlers read
++ * the TEB first, and on a thread without one that faults again inside the handler, which macOS
++ * keeps retrying: the program hangs at full CPU and never draws again. Page faults Wine can fix
++ * without a TEB are fixed and retried; anything else gets the default action, so the process
++ * crashes and its crash report names the real fault. Returns FALSE on Wine's own threads.
++ */
++static BOOL unowned_thread_signal( int signal, siginfo_t *siginfo, ucontext_t *ucontext )
++{
++ struct sigaction dfl;
++
++ if (NtCurrentTeb()) return FALSE;
++ if ((signal == SIGSEGV || signal == SIGBUS) && TRAP_sig(ucontext) == TRAP_x86_PAGEFLT &&
++ virtual_retry_unowned_fault( siginfo->si_addr, (ERROR_sig(ucontext) >> 1) & 0x09 ))
++ return TRUE;
++
++ memset( &dfl, 0, sizeof(dfl) );
++ dfl.sa_handler = SIG_DFL;
++ sigemptyset( &dfl.sa_mask );
++ sigaction( signal, &dfl, NULL );
++ /* a faulting instruction runs again and faults again; a trap has already gone past */
++ if (signal == SIGTRAP) raise( signal );
++ return TRUE;
++}
++#endif
++
++
+ /**********************************************************************
+ * segv_handler
+ *
+@@ -2501,6 +2531,9 @@ static void segv_handler( int signal, siginfo_t *siginfo, void *sigcontext )
+ EXCEPTION_RECORD rec = { 0 };
+ struct xcontext context;
+
++#ifdef __APPLE__
++ if (unowned_thread_signal( signal, siginfo, ucontext )) return;
++#endif
+ rec.ExceptionAddress = (void *)RIP_sig(ucontext);
+ save_context( &context, ucontext );
+
+@@ -2597,6 +2630,9 @@ static void trap_handler( int signal, siginfo_t *siginfo, void *sigcontext )
+ EXCEPTION_RECORD rec = { 0 };
+ struct xcontext context;
+
++#ifdef __APPLE__
++ if (unowned_thread_signal( signal, siginfo, ucontext )) return;
++#endif
+ if (handle_syscall_trap( ucontext, siginfo )) return;
+
+ rec.ExceptionAddress = (void *)RIP_sig(ucontext);
+@@ -2631,6 +2667,9 @@ static void fpe_handler( int signal, siginfo_t *siginfo, void *sigcontext )
+ EXCEPTION_RECORD rec = { .ExceptionAddress = (void *)RIP_sig(ucontext) };
+ struct xcontext context;
+
++#ifdef __APPLE__
++ if (unowned_thread_signal( signal, siginfo, ucontext )) return;
++#endif
+ save_context( &context, sigcontext );
+
+ switch (siginfo->si_code)
+diff --git a/dlls/ntdll/unix/unix_private.h b/dlls/ntdll/unix/unix_private.h
+index 0c68ca4..ccf539d 100644
+--- a/dlls/ntdll/unix/unix_private.h
++++ b/dlls/ntdll/unix/unix_private.h
+@@ -299,6 +299,9 @@ extern NTSTATUS virtual_alloc_thread_stack( INITIAL_TEB *stack, ULONG_PTR limit_
+ extern void virtual_map_user_shared_data(void);
+ extern void virtual_init_user_shared_data(void);
+ extern NTSTATUS virtual_handle_fault( EXCEPTION_RECORD *rec, void *stack );
++#ifdef __APPLE__
++extern BOOL virtual_retry_unowned_fault( void *addr, ULONG_PTR err );
++#endif
+ extern unsigned int virtual_locked_server_call( void *req_ptr );
+ extern ssize_t virtual_locked_read( int fd, void *addr, size_t size );
+ extern ssize_t virtual_locked_pread( int fd, void *addr, size_t size, off_t offset );
+diff --git a/dlls/ntdll/unix/virtual.c b/dlls/ntdll/unix/virtual.c
+index 4f8b03d..51de542 100644
+--- a/dlls/ntdll/unix/virtual.c
++++ b/dlls/ntdll/unix/virtual.c
+@@ -4542,6 +4542,48 @@ static NTSTATUS grow_thread_stack( char *page, struct thread_stack_info *stack_i
+ /***********************************************************************
+ * virtual_handle_fault
+ */
++#ifdef __APPLE__
++/***********************************************************************
++ * virtual_retry_unowned_fault
++ *
++ * Soju: a page fault on a thread Wine did not create (Metal's and D3DMetal's dispatch workers have
++ * no TEB). Fix up the faults Wine fixes for its own threads that need no TEB, and say whether the
++ * access can simply run again: Rosetta reporting a write as a read, writes and executes on pages Wine
++ * keeps writable and executable (CrossOver's hacks 24945 and 25719), writes to write-watched pages.
++ */
++BOOL virtual_retry_unowned_fault( void *addr, ULONG_PTR err )
++{
++ char *page = ROUND_ADDR( addr, host_page_mask );
++ BOOL retry = FALSE;
++ BYTE vprot;
++ int prot;
++
++ mutex_lock( &virtual_mutex );
++ vprot = get_host_page_vprot( page );
++ prot = get_unix_prot( vprot );
++ if (err == EXCEPTION_READ_FAULT && (prot & PROT_READ)) err = EXCEPTION_WRITE_FAULT;
++
++ if ((err == EXCEPTION_WRITE_FAULT && (prot & PROT_WRITE) && (prot & PROT_EXEC)) ||
++ (err == EXCEPTION_EXECUTE_FAULT && (prot & PROT_EXEC)))
++ {
++ mprotect_range( page, page_size, 0, VPROT_EXEC );
++ mprotect_range( page, page_size, VPROT_EXEC, 0 );
++ retry = TRUE;
++ }
++ else if (err == EXCEPTION_WRITE_FAULT)
++ {
++ if (vprot & VPROT_WRITEWATCH)
++ {
++ set_page_vprot_bits( page, host_page_size, 0, VPROT_WRITEWATCH );
++ mprotect_range( page, host_page_size, 0, 0 );
++ }
++ retry = (get_unix_prot( get_host_page_vprot( page ) ) & PROT_WRITE) != 0;
++ }
++ mutex_unlock( &virtual_mutex );
++ return retry;
++}
++#endif
++
+ NTSTATUS virtual_handle_fault( EXCEPTION_RECORD *rec, void *stack )
+ {
+ NTSTATUS ret = STATUS_ACCESS_VIOLATION;
diff --git a/patches/engine/0007-remote-child-layers.patch b/patches/engine/0007-remote-child-layers.patch
new file mode 100644
index 00000000000..6a4e02707d0
--- /dev/null
+++ b/patches/engine/0007-remote-child-layers.patch
@@ -0,0 +1,528 @@
+Soju: winemac shows Metal drawing of a window whose top-level window another process owns.
+Chromium's GPU process (the EA app, Rockstar Games Launcher, Ubisoft Connect) draws with DXMT or
+D3DMetal into a window of the browser process; the driver had no view for it there and the
+launcher stayed white or black. The drawing process now renders into a CAMetalLayer it exports
+through a CAContext, and the owner of the top-level window shows it with a CALayerHost placed on
+the window's client area, kept in place as either side moves, resizes, shows or hides it, and
+removed when the drawing ends or the window is destroyed.
+
+diff --git a/dlls/winemac.drv/cocoa_window.m b/dlls/winemac.drv/cocoa_window.m
+index ffb7c6a..3ca2be6 100644
+--- a/dlls/winemac.drv/cocoa_window.m
++++ b/dlls/winemac.drv/cocoa_window.m
+@@ -25,6 +25,7 @@
+ #import <Metal/Metal.h>
+ #import <QuartzCore/QuartzCore.h>
+ #include <dlfcn.h>
++#include <objc/runtime.h>
+
+ #import "cocoa_window.h"
+
+@@ -4033,6 +4034,175 @@ void macdrv_release_metal_device(macdrv_metal_device d)
+ }
+ }
+
++/* Soju: cross-process layers. A Chromium-based launcher draws its pages in a GPU process, into a
++ * child window of a top-level window that its browser process owns. The GPU process has no
++ * NSWindow for it, so it draws into a CAMetalLayer of its own that it exports through a CAContext,
++ * and the browser process shows that layer in its window with a CALayerHost (both private
++ * QuartzCore classes, the same pair upstream Wine uses for cross-process top-level windows). */
++extern uint32_t CGSMainConnectionID(void);
++
++@interface CAContext : NSObject
+++ (id) contextWithCGSConnection:(uint32_t)connection options:(NSDictionary*)options;
++@property (readonly) uint32_t contextId;
++@property (retain) CALayer* layer;
++@end
++
++@interface CALayerHost : CALayer
++@property uint32_t contextId;
++@end
++
++@interface SojuRemoteLayer : NSObject
++@property (retain) CAMetalLayer* metalLayer;
++@property (retain) CAContext* context;
++@end
++
++@implementation SojuRemoteLayer
++- (void) observeValueForKeyPath:(NSString*)keyPath ofObject:(id)object change:(NSDictionary*)change context:(void*)ctx
++{
++ CAMetalLayer* layer = _metalLayer;
++ CGSize size = layer.drawableSize;
++ CGFloat scale = layer.contentsScale > 0 ? layer.contentsScale : 1.0;
++
++ if (size.width <= 0 || size.height <= 0) return;
++ dispatch_async(dispatch_get_main_queue(), ^{
++ [CATransaction begin];
++ [CATransaction setDisableActions:YES];
++ layer.bounds = CGRectMake(0, 0, size.width / scale, size.height / scale);
++ [CATransaction commit];
++ });
++}
++
++- (void) dealloc
++{
++ [_metalLayer removeObserver:self forKeyPath:@"drawableSize"];
++ [_context setLayer:nil];
++ [_context release];
++ [_metalLayer release];
++ [super dealloc];
++}
++@end
++
++static char soju_remote_hosts_key;
++
++macdrv_remote_layer macdrv_remote_layer_create(macdrv_metal_device d, CGRect bounds, unsigned int *context_id)
++{
++ __block SojuRemoteLayer* remote = nil;
++
++ OnMainThread(^{
++ CAMetalLayer* layer = [CAMetalLayer layer];
++ CAContext* context = [CAContext contextWithCGSConnection:CGSMainConnectionID() options:@{}];
++
++ if (!layer || !context || !context.contextId) return;
++ layer.device = (id<MTLDevice>)d;
++ layer.anchorPoint = CGPointZero;
++ layer.contentsScale = retina_on ? 2.0 : 1.0;
++ layer.bounds = cgrect_mac_from_win(CGRectMake(0, 0, bounds.size.width, bounds.size.height));
++ context.layer = layer;
++ remote = [[SojuRemoteLayer alloc] init];
++ remote.metalLayer = layer;
++ remote.context = context;
++ [layer addObserver:remote forKeyPath:@"drawableSize" options:0 context:NULL];
++ });
++ if (!remote) return NULL;
++ *context_id = remote.context.contextId;
++ return (macdrv_remote_layer)remote;
++}
++
++macdrv_metal_layer macdrv_remote_layer_get_metal_layer(macdrv_remote_layer r)
++{
++ return (macdrv_metal_layer)((SojuRemoteLayer*)r).metalLayer;
++}
++
++void macdrv_remote_layer_set_bounds(macdrv_remote_layer r, CGRect bounds)
++{
++ SojuRemoteLayer* remote = (SojuRemoteLayer*)r;
++
++ OnMainThread(^{
++ [CATransaction begin];
++ [CATransaction setDisableActions:YES];
++ remote.metalLayer.bounds = cgrect_mac_from_win(CGRectMake(0, 0, bounds.size.width, bounds.size.height));
++ [CATransaction commit];
++ });
++}
++
++void macdrv_remote_layer_destroy(macdrv_remote_layer r)
++{
++ SojuRemoteLayer* remote = (SojuRemoteLayer*)r;
++ OnMainThreadAsync(^{ [remote release]; });
++}
++
++/* The top-level window's side: one CALayerHost per context id, kept on its content view. */
++void macdrv_window_place_remote_layer(macdrv_window w, unsigned int context_id, void *hwnd, CGRect frame, int visible)
++{
++ WineWindow* window = (WineWindow*)w;
++
++ OnMainThread(^{
++ NSView* view = [window contentView];
++ NSMutableDictionary* hosts;
++ CALayerHost* host;
++
++ if (!view) return;
++ if (!view.layer) view.wantsLayer = YES;
++ if (!(hosts = objc_getAssociatedObject(view, &soju_remote_hosts_key)))
++ {
++ hosts = [NSMutableDictionary dictionary];
++ objc_setAssociatedObject(view, &soju_remote_hosts_key, hosts, OBJC_ASSOCIATION_RETAIN);
++ }
++ [CATransaction begin];
++ [CATransaction setDisableActions:YES];
++ if (!(host = [hosts objectForKey:@(context_id)]))
++ {
++ host = [CALayerHost layer];
++ host.contextId = context_id;
++ host.anchorPoint = CGPointZero;
++ host.masksToBounds = YES;
++ [view.layer addSublayer:host];
++ [hosts setObject:host forKey:@(context_id)];
++ }
++ [host setValue:@((uintptr_t)hwnd) forKey:@"sojuHwnd"];
++ host.contentsScale = retina_on ? 2.0 : 1.0;
++ host.frame = [view convertRectToLayer:NSRectFromCGRect(cgrect_mac_from_win(frame))];
++ host.hidden = !visible;
++ [CATransaction commit];
++ if ([window respondsToSelector:@selector(windowDidDrawContent)])
++ [window windowDidDrawContent];
++ });
++}
++
++void macdrv_window_remove_remote_layer(macdrv_window w, unsigned int context_id)
++{
++ WineWindow* window = (WineWindow*)w;
++
++ OnMainThread(^{
++ NSView* view = [window contentView];
++ NSMutableDictionary* hosts = view ? objc_getAssociatedObject(view, &soju_remote_hosts_key) : nil;
++ CALayerHost* host = [hosts objectForKey:@(context_id)];
++
++ [host removeFromSuperlayer];
++ [hosts removeObjectForKey:@(context_id)];
++ });
++}
++
++int macdrv_window_remote_layers(macdrv_window w, unsigned int *context_ids, void **hwnds, int max)
++{
++ WineWindow* window = (WineWindow*)w;
++ __block int count = 0;
++
++ OnMainThread(^{
++ NSView* view = [window contentView];
++ NSMutableDictionary* hosts = view ? objc_getAssociatedObject(view, &soju_remote_hosts_key) : nil;
++
++ for (NSNumber* key in hosts)
++ {
++ if (count == max) break;
++ context_ids[count] = key.unsignedIntValue;
++ hwnds[count] = (void *)(uintptr_t)[[hosts[key] valueForKey:@"sojuHwnd"] unsignedLongLongValue];
++ count++;
++ }
++ });
++ return count;
++}
++
+ macdrv_metal_view macdrv_view_create_metal_view(macdrv_view v, macdrv_metal_device d)
+ {
+ id<MTLDevice> device = (id<MTLDevice>)d;
+diff --git a/dlls/winemac.drv/d3dmetal.c b/dlls/winemac.drv/d3dmetal.c
+index b003607..eeebf93 100644
+--- a/dlls/winemac.drv/d3dmetal.c
++++ b/dlls/winemac.drv/d3dmetal.c
+@@ -115,8 +115,20 @@ static struct d3dmetal_macdrv_win_data *my_get_win_data(HWND hwnd)
+ data = get_win_data(hwnd);
+ if (!data)
+ {
+- client_surface_release((struct client_surface *)client_surface);
+- return NULL;
++ macdrv_view remote;
++ RECT rect;
++
++ if (client_surface) client_surface_release((struct client_surface *)client_surface);
++ /* Soju: a child of another process's window (Chromium's GPU process). Hand over a view
++ * that my_macdrv_view_create_metal_view turns into a layer shown by that process. */
++ if (!(remote = macdrv_remote_child_view(hwnd))) return NULL;
++ NtUserGetClientRect(hwnd, &rect, NtUserGetWinMonitorDpi(hwnd, MDT_RAW_DPI));
++ d3dm_data = calloc(1, sizeof(*d3dm_data));
++ d3dm_data->hwnd = hwnd;
++ d3dm_data->client_cocoa_view = remote;
++ d3dm_data->window_rect = d3dm_data->whole_rect = d3dm_data->client_rect = rect;
++ d3dm_data->on_screen = 1;
++ return d3dm_data;
+ }
+
+ macdrv_set_view_d3dmetal_client_surface(client_surface->cocoa_view, &client_surface->client);
+@@ -160,7 +172,7 @@ static void my_release_win_data(struct d3dmetal_macdrv_win_data *data)
+ if (!data)
+ return;
+
+- release_win_data(data->padding[0]);
++ if (data->padding[0]) release_win_data(data->padding[0]);
+ free(data);
+ }
+
+@@ -185,18 +197,21 @@ static void my_macdrv_release_metal_device(macdrv_metal_device d)
+ static macdrv_metal_view my_macdrv_view_create_metal_view(macdrv_view v, macdrv_metal_device d)
+ {
+ TRACE("macdrv_view_create_metal_view %p %p\n", v, d);
++ if (macdrv_is_remote_child(v)) return macdrv_remote_child_create_metal_view(v, d);
+ return macdrv_view_create_metal_view(v, d);
+ }
+
+ static macdrv_metal_layer my_macdrv_view_get_metal_layer(macdrv_metal_view v)
+ {
+ TRACE("macdrv_view_get_metal_layer %p\n", v);
++ if (macdrv_is_remote_child(v)) return macdrv_remote_child_metal_layer(v);
+ return macdrv_view_get_metal_layer(v);
+ }
+
+ static void my_macdrv_view_release_metal_view(macdrv_metal_view v)
+ {
+ TRACE("macdrv_view_release_metal_view %p\n", v);
++ if (macdrv_is_remote_child(v)) return macdrv_remote_child_release(v);
+ return macdrv_view_release_metal_view(v);
+ }
+
+diff --git a/dlls/winemac.drv/macdrv.h b/dlls/winemac.drv/macdrv.h
+index 5735ff7..f6121e2 100644
+--- a/dlls/winemac.drv/macdrv.h
++++ b/dlls/winemac.drv/macdrv.h
+@@ -100,6 +100,10 @@ static inline RECT rect_from_cgrect(CGRect cgrect)
+ {
+ WM_MACDRV_SET_WIN_REGION = WM_WINE_FIRST_DRIVER_MSG,
+ WM_MACDRV_ACTIVATE_ON_FOLLOWING_FOCUS,
++ /* Soju: sent to a top-level window by the process that draws one of its child windows;
++ * wParam is the child, lParam the CAContext id of the layer it draws into. */
++ WM_MACDRV_PLACE_REMOTE_LAYER,
++ WM_MACDRV_REMOVE_REMOTE_LAYER,
+ };
+
+ struct macdrv_thread_data
+@@ -213,6 +217,14 @@ extern BOOL macdrv_SystemParametersInfo(UINT action, UINT int_param, void *ptr_p
+ }
+
+ extern struct macdrv_client_surface *macdrv_client_surface_create(HWND hwnd);
++/* Soju: child windows whose top-level window belongs to another process */
++extern macdrv_view macdrv_remote_child_view(HWND hwnd);
++extern BOOL macdrv_is_remote_child(const void *v);
++extern macdrv_metal_view macdrv_remote_child_create_metal_view(macdrv_view v, macdrv_metal_device d);
++extern macdrv_metal_layer macdrv_remote_child_metal_layer(macdrv_metal_view v);
++extern void macdrv_remote_child_release(macdrv_metal_view v);
++extern void macdrv_remote_child_moved(HWND hwnd);
++extern void macdrv_remote_child_destroyed(HWND hwnd);
+
+ extern struct macdrv_win_data *get_win_data(HWND hwnd);
+ extern void release_win_data(struct macdrv_win_data *data);
+diff --git a/dlls/winemac.drv/macdrv_cocoa.h b/dlls/winemac.drv/macdrv_cocoa.h
+index 477efe9..107d3c9 100644
+--- a/dlls/winemac.drv/macdrv_cocoa.h
++++ b/dlls/winemac.drv/macdrv_cocoa.h
+@@ -557,6 +557,15 @@ extern void macdrv_order_cocoa_window(macdrv_window w, macdrv_window prev,
+ extern macdrv_metal_device macdrv_create_metal_device(void);
+ extern void macdrv_release_metal_device(macdrv_metal_device d);
+ extern macdrv_metal_view macdrv_view_create_metal_view(macdrv_view v, macdrv_metal_device d);
++/* Soju: a Metal layer drawn in this process and shown in another process's window */
++typedef struct opaque_macdrv_remote_layer* macdrv_remote_layer;
++extern macdrv_remote_layer macdrv_remote_layer_create(macdrv_metal_device d, CGRect bounds, unsigned int *context_id);
++extern macdrv_metal_layer macdrv_remote_layer_get_metal_layer(macdrv_remote_layer r);
++extern void macdrv_remote_layer_set_bounds(macdrv_remote_layer r, CGRect bounds);
++extern void macdrv_remote_layer_destroy(macdrv_remote_layer r);
++extern void macdrv_window_place_remote_layer(macdrv_window w, unsigned int context_id, void *hwnd, CGRect frame, int visible);
++extern void macdrv_window_remove_remote_layer(macdrv_window w, unsigned int context_id);
++extern int macdrv_window_remote_layers(macdrv_window w, unsigned int *context_ids, void **hwnds, int max);
+ extern macdrv_metal_layer macdrv_view_get_metal_layer(macdrv_metal_view v);
+ extern void macdrv_view_release_metal_view(macdrv_metal_view v);
+ extern bool macdrv_get_view_backing_size(macdrv_view v, int backing_size[2]);
+diff --git a/dlls/winemac.drv/window.c b/dlls/winemac.drv/window.c
+index 6e09399..bc61ca7 100644
+--- a/dlls/winemac.drv/window.c
++++ b/dlls/winemac.drv/window.c
+@@ -1361,6 +1361,7 @@ void macdrv_DestroyWindow(HWND hwnd)
+
+ TRACE("%p\n", hwnd);
+
++ macdrv_remote_child_destroyed(hwnd); /* Soju */
+ if (!(data = get_win_data(hwnd))) return;
+
+ if (hwnd == get_capture()) macdrv_SetCapture(0, 0);
+@@ -1633,6 +1634,173 @@ void macdrv_UpdateLayeredWindow(HWND hwnd, BYTE alpha, UINT flags)
+ /**********************************************************************
+ * WindowMessage (MACDRV.@)
+ */
++/***********************************************************************
++ * Soju: child windows drawn here whose top-level window another process owns
++ *
++ * Chromium's GPU process (the EA app, Rockstar Games Launcher, Ubisoft Connect) has DXMT or D3DMetal
++ * draw into a window whose top-level window the browser process owns. This process keeps no window
++ * data for such a child, so there was no view to draw into and the launcher stayed black. Here the
++ * child gets a layer exported to the window server (macdrv_remote_layer_*), and the owner of the
++ * top-level window is told where to show it (WM_MACDRV_PLACE_REMOTE_LAYER) whenever it is made,
++ * moved, resized, shown or hidden, and to drop it (WM_MACDRV_REMOVE_REMOTE_LAYER) when it goes.
++ */
++struct remote_child
++{
++ struct list entry;
++ HWND hwnd;
++ HWND root;
++ macdrv_remote_layer layer; /* NULL until DXMT or D3DMetal asks for a Metal view */
++ unsigned int context_id;
++};
++
++static struct list remote_children = LIST_INIT(remote_children);
++static pthread_mutex_t remote_children_mutex = PTHREAD_MUTEX_INITIALIZER;
++
++static struct remote_child *find_remote_child(const void *ptr, HWND hwnd)
++{
++ struct remote_child *child;
++ LIST_FOR_EACH_ENTRY(child, &remote_children, struct remote_child, entry)
++ if (child == ptr || (hwnd && child->hwnd == hwnd)) return child;
++ return NULL;
++}
++
++static RECT remote_child_client_rect(HWND hwnd)
++{
++ RECT rect;
++ if (!NtUserGetClientRect(hwnd, &rect, NtUserGetWinMonitorDpi(hwnd, MDT_RAW_DPI))) SetRectEmpty(&rect);
++ return rect;
++}
++
++macdrv_view macdrv_remote_child_view(HWND hwnd)
++{
++ HWND root = NtUserGetAncestor(hwnd, GA_ROOT);
++ struct remote_child *child;
++ DWORD pid = 0;
++
++ if (!root) return NULL;
++ NtUserGetWindowThread(root, &pid);
++ if (!pid || pid == GetCurrentProcessId()) return NULL;
++
++ pthread_mutex_lock(&remote_children_mutex);
++ if (!(child = find_remote_child(NULL, hwnd)) && (child = calloc(1, sizeof(*child))))
++ {
++ child->hwnd = hwnd;
++ child->root = root;
++ list_add_tail(&remote_children, &child->entry);
++ }
++ pthread_mutex_unlock(&remote_children_mutex);
++ TRACE("child %p of %p (process %04x) -> %p\n", hwnd, root, (unsigned)pid, child);
++ return (macdrv_view)child;
++}
++
++BOOL macdrv_is_remote_child(const void *v)
++{
++ BOOL ret;
++ if (!v || list_empty(&remote_children)) return FALSE;
++ pthread_mutex_lock(&remote_children_mutex);
++ ret = find_remote_child(v, NULL) != NULL;
++ pthread_mutex_unlock(&remote_children_mutex);
++ return ret;
++}
++
++macdrv_metal_view macdrv_remote_child_create_metal_view(macdrv_view v, macdrv_metal_device d)
++{
++ struct remote_child *child = (struct remote_child *)v;
++ RECT rect = remote_child_client_rect(child->hwnd);
++ macdrv_remote_layer layer;
++ unsigned int id = 0;
++
++ if (!(layer = macdrv_remote_layer_create(d, cgrect_from_rect(rect), &id))) return NULL;
++ pthread_mutex_lock(&remote_children_mutex);
++ if (child->layer) macdrv_remote_layer_destroy(child->layer);
++ child->layer = layer;
++ child->context_id = id;
++ pthread_mutex_unlock(&remote_children_mutex);
++ TRACE("child %p draws into context %u, shown by %p\n", child->hwnd, id, child->root);
++ NtUserPostMessage(child->root, WM_MACDRV_PLACE_REMOTE_LAYER, (WPARAM)child->hwnd, id);
++ return (macdrv_metal_view)child;
++}
++
++macdrv_metal_layer macdrv_remote_child_metal_layer(macdrv_metal_view v)
++{
++ struct remote_child *child = (struct remote_child *)v;
++ return child->layer ? macdrv_remote_layer_get_metal_layer(child->layer) : NULL;
++}
++
++static void remote_child_free(struct remote_child *child)
++{
++ list_remove(&child->entry);
++ if (child->layer)
++ {
++ NtUserPostMessage(child->root, WM_MACDRV_REMOVE_REMOTE_LAYER, (WPARAM)child->hwnd, child->context_id);
++ macdrv_remote_layer_destroy(child->layer);
++ }
++ free(child);
++}
++
++void macdrv_remote_child_release(macdrv_metal_view v)
++{
++ struct remote_child *child;
++ pthread_mutex_lock(&remote_children_mutex);
++ if ((child = find_remote_child(v, NULL))) remote_child_free(child);
++ pthread_mutex_unlock(&remote_children_mutex);
++}
++
++void macdrv_remote_child_moved(HWND hwnd)
++{
++ struct remote_child *child;
++ if (list_empty(&remote_children)) return;
++ pthread_mutex_lock(&remote_children_mutex);
++ if ((child = find_remote_child(NULL, hwnd)) && child->layer)
++ {
++ macdrv_remote_layer_set_bounds(child->layer, cgrect_from_rect(remote_child_client_rect(hwnd)));
++ NtUserPostMessage(child->root, WM_MACDRV_PLACE_REMOTE_LAYER, (WPARAM)hwnd, child->context_id);
++ }
++ pthread_mutex_unlock(&remote_children_mutex);
++}
++
++void macdrv_remote_child_destroyed(HWND hwnd)
++{
++ struct remote_child *child;
++ if (list_empty(&remote_children)) return;
++ pthread_mutex_lock(&remote_children_mutex);
++ if ((child = find_remote_child(NULL, hwnd))) remote_child_free(child);
++ pthread_mutex_unlock(&remote_children_mutex);
++}
++
++/* The top-level window's side: where the child is now, in the content view's coordinates. */
++static void place_remote_layer(struct macdrv_win_data *data, HWND child, unsigned int id)
++{
++ RECT rect;
++ BOOL visible;
++
++ if (!NtUserIsWindow(child))
++ {
++ macdrv_window_remove_remote_layer(data->cocoa_window, id);
++ return;
++ }
++ rect = remote_child_client_rect(child);
++ visible = NtUserIsWindowVisible(child) && rect.right > rect.left && rect.bottom > rect.top;
++ NtUserMapWindowPoints(child, data->hwnd, (POINT *)&rect, 2, NtUserGetWinMonitorDpi(data->hwnd, MDT_RAW_DPI));
++ OffsetRect(&rect, data->rects.client.left - data->rects.visible.left,
++ data->rects.client.top - data->rects.visible.top);
++ TRACE("context %u of child %p at %s%s\n", id, child, wine_dbgstr_rect(&rect), visible ? "" : " (hidden)");
++ macdrv_window_place_remote_layer(data->cocoa_window, id, child, cgrect_from_rect(rect), visible);
++}
++
++static BOOL hosts_remote_layers; /* set once this process shows a layer drawn by another */
++
++static void replace_remote_layers(struct macdrv_win_data *data)
++{
++ unsigned int ids[16];
++ void *hwnds[16];
++ int i, count;
++
++ if (!hosts_remote_layers || !data->cocoa_window) return;
++ count = macdrv_window_remote_layers(data->cocoa_window, ids, hwnds, ARRAY_SIZE(ids));
++ for (i = 0; i < count; i++) place_remote_layer(data, hwnds[i], ids[i]);
++}
++
+ LRESULT macdrv_WindowMessage(HWND hwnd, UINT msg, WPARAM wp, LPARAM lp)
+ {
+ struct macdrv_win_data *data;
+@@ -1652,6 +1820,22 @@ LRESULT macdrv_WindowMessage(HWND hwnd, UINT msg, WPARAM wp, LPARAM lp)
+ activate_on_following_focus();
+ TRACE("WM_MACDRV_ACTIVATE_ON_FOLLOWING_FOCUS time %u\n", activate_on_focus_time);
+ return 0;
++ case WM_MACDRV_PLACE_REMOTE_LAYER:
++ case WM_MACDRV_REMOVE_REMOTE_LAYER:
++ if ((data = get_win_data(hwnd)))
++ {
++ if (data->cocoa_window)
++ {
++ if (msg == WM_MACDRV_PLACE_REMOTE_LAYER)
++ {
++ hosts_remote_layers = TRUE;
++ place_remote_layer(data, (HWND)wp, (unsigned int)lp);
++ }
++ else macdrv_window_remove_remote_layer(data->cocoa_window, (unsigned int)lp);
++ }
++ release_win_data(data);
++ }
++ return 0;
+ }
+
+ FIXME("unrecognized window msg %x hwnd %p wp %lx lp %lx\n", msg, hwnd, (unsigned long)wp, lp);
+@@ -1720,12 +1904,14 @@ void macdrv_WindowPosChanged(HWND hwnd, HWND insert_after, HWND owner_hint, UINT
+ unsigned int new_style = NtUserGetWindowLongW(hwnd, GWL_STYLE);
+ struct window_rects old_rects;
+
++ macdrv_remote_child_moved(hwnd); /* Soju */
+ if (!(data = get_win_data(hwnd))) return;
+
+ thread_data = macdrv_thread_data();
+
+ old_rects = data->rects;
+ data->rects = *new_rects;
++ replace_remote_layers(data); /* Soju */
+
+ TRACE("win %p/%p new_rects %s style %08x flags %08x surface %p\n", hwnd, data->cocoa_window,
+ debugstr_window_rects(new_rects), new_style, swp_flags, surface);
diff --git a/patches/engine/0101-wine-getintegrateddisplaysize-stub.patch b/patches/engine/0101-wine-getintegrateddisplaysize-stub.patch
new file mode 100644
index 00000000000..a8f84b87d24
--- /dev/null
+++ b/patches/engine/0101-wine-getintegrateddisplaysize-stub.patch
@@ -0,0 +1,37 @@
+From c68ed23672ab70b2da85d88797fc7462dc637aa7 Mon Sep 17 00:00:00 2001
+From: Paul Gofman <[email protected]>
+Date: Thu, 20 Nov 2025 20:50:05 -0600
+Subject: [PATCH] kernelbase: Add stub for GetIntegratedDisplaySize().
+
+---
+ dlls/kernelbase/kernelbase.spec | 2 +-
+ dlls/kernelbase/main.c | 6 ++++++
+ 2 files changed, 7 insertions(+), 1 deletion(-)
+
+diff --git a/dlls/kernelbase/kernelbase.spec b/dlls/kernelbase/kernelbase.spec
+index 2c5906a29c22..6c1d14e7dca6 100644
+--- a/dlls/kernelbase/kernelbase.spec
++++ b/dlls/kernelbase/kernelbase.spec
+@@ -569,7 +569,7 @@
+ @ stdcall GetGeoInfoEx(ptr long ptr long)
+ @ stdcall GetHandleInformation(long ptr)
+ # @ stub GetHivePath
+-# @ stub GetIntegratedDisplaySize
++@ stdcall GetIntegratedDisplaySize(ptr)
+ # @ stub GetIsEdpEnabled
+ @ stdcall GetKernelObjectSecurity(long long ptr long ptr)
+ @ stdcall GetLargePageMinimum()
+diff --git a/dlls/kernelbase/main.c b/dlls/kernelbase/main.c
+index 456bcf5e7d78..8c37e5da1ab5 100644
+--- a/dlls/kernelbase/main.c
++++ b/dlls/kernelbase/main.c
+@@ -635,3 +635,9 @@ HRESULT WINAPI GetAcceptLanguagesW(WCHAR *langbuf, DWORD *buflen)
+ *buflen = 0;
+ return E_NOT_SUFFICIENT_BUFFER;
+ }
++
++HRESULT WINAPI GetIntegratedDisplaySize( double *sz_inches )
++{
++ FIXME( "%p stub.\n", sz_inches );
++ return E_NOTIMPL;
++}
diff --git a/patches/engine/0102-wine-msvcp90-concurrent-vector-capacity.patch b/patches/engine/0102-wine-msvcp90-concurrent-vector-capacity.patch
new file mode 100644
index 00000000000..67f00f21f55
--- /dev/null
+++ b/patches/engine/0102-wine-msvcp90-concurrent-vector-capacity.patch
@@ -0,0 +1,23 @@
+From d5c7ea9089e2d90c3842a2e67b7961fa664b9e31 Mon Sep 17 00:00:00 2001
+From: Piotr Caban <[email protected]>
+Date: Thu, 30 Apr 2026 18:45:09 +0200
+Subject: [PATCH] msvcp120: Don't count segments being allocated when reporting
+ vector capacity.
+
+---
+ dlls/msvcp90/details.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/dlls/msvcp90/details.c b/dlls/msvcp90/details.c
+index d6b72fcd3f1f..a625266e2554 100644
+--- a/dlls/msvcp90/details.c
++++ b/dlls/msvcp90/details.c
+@@ -541,7 +541,7 @@ size_t __thiscall _Concurrent_vector_base_v4__Internal_capacity(
+ last_block = (this->segment == this->storage ? STORAGE_SIZE : SEGMENT_SIZE);
+ for(i = 0; i < last_block; i++)
+ {
+- if(!this->segment[i])
++ if(!this->segment[i] || this->segment[i] == SEGMENT_ALLOC_MARKER)
+ return !i ? 0 : 1 << i;
+ }
+ return 1 << i;
diff --git a/patches/highball/0029-concrt140-msvcp90-concurrent-vector-from-upstream.patch b/patches/engine/0103-wine-concrt140-details-sync.patch
similarity index 56%
rename from patches/highball/0029-concrt140-msvcp90-concurrent-vector-from-upstream.patch
rename to patches/engine/0103-wine-concrt140-details-sync.patch
index 867b08fc4f9..0ac7247911a 100644
--- a/patches/highball/0029-concrt140-msvcp90-concurrent-vector-from-upstream.patch
+++ b/patches/engine/0103-wine-concrt140-details-sync.patch
@@ -1,33 +1,11 @@
-concrt140 and msvcp90: the concurrent_vector fixes from upstream Wine.
+Upstream Wine de43f5434fe (Piotr Caban, "concrt140: Sync details.c file with msvcp90."), the
+dlls/concrt140 part; its msvcp90 hunk is already in this tree with 0102.
-Backport of two upstream commits by Piotr Caban, unchanged:
-de43f5434fe "concrt140: Sync details.c file with msvcp90." (2026-05-01) and
-the msvcp90 half of d5c7ea9089e "msvcp120: Don't count segments being
-allocated when reporting vector capacity." (2026-04-30). CrossOver 26.3's
-dlls/concrt140/details.c is the upstream file from before de43f5434fe, byte
-for byte, so the first applies as is.
-
-concrt140's copy of the concurrent_vector code had missed msvcp90's 2025 fixes:
-it sized segments as element_size times the count the allocator already
-multiplies, and placed segments and elements with BYTE** arithmetic, eight
-times too far. And in both copies _Internal_capacity counted a segment another
-thread was still allocating (SEGMENT_ALLOC_MARKER, the value 1) as allocated,
-so _Internal_reserve could return early and _Internal_push_back handed out the
-marker plus an offset as the new element's address.
-
-Forza Horizon 6's Steam build of 2026-11-03 (26261073) imports
-?_Internal_push_back@_Concurrent_vector_base_v4@details@Concurrency@@IEAAPEAX_KAEA_K@Z
-from concrt140 and stores through the result at forzahorizon6.exe+0xeb33ff.
-On the Wine 11 engines r28 and r30 it crashed in its first minute with an
-unhandled write to 0x9 or 0x29 (the marker plus 8, the marker plus two
-16-byte elements plus 8): 5 of 10 cold starts on r28 and every one on r30, an
-M4 with macOS 27.0, 2026-11-04. With Microsoft's concrt140 (concrt140=n,b) the
-same environment ran 6 of 6, three on each, to the game's next screen. The
-arm64 engines' Wine 11.18 already carries both commits.
-diff -ru a/dlls/concrt140/details.c b/dlls/concrt140/details.c
---- a/dlls/concrt140/details.c 2026-11-04 02:35:28
-+++ b/dlls/concrt140/details.c 2026-11-04 02:35:28
-@@ -483,12 +483,11 @@
+diff --git a/dlls/concrt140/details.c b/dlls/concrt140/details.c
+index f8c2fad..ceed46a 100644
+--- a/dlls/concrt140/details.c
++++ b/dlls/concrt140/details.c
+@@ -483,12 +483,11 @@ static void concurrent_vector_alloc_segment(_Concurrent_vector_base_v4 *this,
__TRY
{
if(seg == 0)
@@ -43,7 +21,7 @@ diff -ru a/dlls/concrt140/details.c b/dlls/concrt140/details.c
}
__EXCEPT_ALL
{
-@@ -528,7 +527,7 @@
+@@ -528,7 +527,7 @@ size_t __thiscall _Concurrent_vector_base_v4__Internal_capacity(
last_block = (this->segment == this->storage ? STORAGE_SIZE : SEGMENT_SIZE);
for(i = 0; i < last_block; i++)
{
@@ -52,7 +30,7 @@ diff -ru a/dlls/concrt140/details.c b/dlls/concrt140/details.c
return !i ? 0 : 1 << i;
}
return 1 << i;
-@@ -714,7 +713,7 @@
+@@ -714,7 +713,7 @@ void __thiscall _Concurrent_vector_base_v4__Internal_assign(
if(this->early_size > v_size)
{
if((i ? 1 << i : 2) - remain_element > 0)
@@ -61,7 +39,7 @@ diff -ru a/dlls/concrt140/details.c b/dlls/concrt140/details.c
(i ? 1 << i : 2) - remain_element);
if(i < seg_no)
{
-@@ -726,8 +725,8 @@
+@@ -726,8 +725,8 @@ void __thiscall _Concurrent_vector_base_v4__Internal_assign(
else if(this->early_size < v_size)
{
if((i ? 1 << i : 2) - remain_element > 0)
@@ -72,7 +50,7 @@ diff -ru a/dlls/concrt140/details.c b/dlls/concrt140/details.c
(i ? 1 << i : 2) - remain_element);
if(i < v_seg_no)
{
-@@ -763,7 +762,7 @@
+@@ -763,7 +762,7 @@ size_t __thiscall _Concurrent_vector_base_v4__Internal_grow_by(
last_seg_no = _vector_base_v4__Segment_index_of(size + count - 1);
remain_size = min(size + count, 1 << (seg_no + 1)) - size;
if(remain_size > 0)
@@ -81,7 +59,7 @@ diff -ru a/dlls/concrt140/details.c b/dlls/concrt140/details.c
remain_size);
if(seg_no != last_seg_no)
{
-@@ -796,7 +795,7 @@
+@@ -796,7 +795,7 @@ size_t __thiscall _Concurrent_vector_base_v4__Internal_grow_to_at_least_with_res
last_seg_no = _vector_base_v4__Segment_index_of(count - 1);
remain_size = min(count, 1 << (seg_no + 1)) - size;
if(remain_size > 0)
@@ -90,7 +68,7 @@ diff -ru a/dlls/concrt140/details.c b/dlls/concrt140/details.c
remain_size);
if(seg_no != last_seg_no)
{
-@@ -862,7 +861,7 @@
+@@ -862,7 +861,7 @@ void __thiscall _Concurrent_vector_base_v4__Internal_resize(
clear(this->segment[seg_no], 1 << seg_no);
clear_element = (1 << (end_seg_no + 1)) - resize;
if(clear_element > 0)
@@ -99,15 +77,3 @@ diff -ru a/dlls/concrt140/details.c b/dlls/concrt140/details.c
clear_element);
this->early_size = resize;
}
-diff -ru a/dlls/msvcp90/details.c b/dlls/msvcp90/details.c
---- a/dlls/msvcp90/details.c 2026-11-04 02:35:28
-+++ b/dlls/msvcp90/details.c 2026-11-04 02:35:28
-@@ -541,7 +541,7 @@
- last_block = (this->segment == this->storage ? STORAGE_SIZE : SEGMENT_SIZE);
- for(i = 0; i < last_block; i++)
- {
-- if(!this->segment[i])
-+ if(!this->segment[i] || this->segment[i] == SEGMENT_ALLOC_MARKER)
- return !i ? 0 : 1 << i;
- }
- return 1 << i;
diff --git a/patches/highball/0010-mfreadwrite-video-processor-sample-allocator.patch b/patches/engine/0104-proton-mfreadwrite-video-sample-allocator.patch
similarity index 85%
rename from patches/highball/0010-mfreadwrite-video-processor-sample-allocator.patch
rename to patches/engine/0104-proton-mfreadwrite-video-sample-allocator.patch
index 46c9239c5e0..db9f7d751af 100644
--- a/patches/highball/0010-mfreadwrite-video-processor-sample-allocator.patch
+++ b/patches/engine/0104-proton-mfreadwrite-video-sample-allocator.patch
@@ -1,20 +1,13 @@
-mfreadwrite/reader: rely on the video processor's sample allocator (Proton 164af86d, CW-Bug-Id 20833).
+From 164af86dd770f975cdff3e09884f14ebc14b856b Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?R=C3=A9mi=20Bernon?= <[email protected]>
+Date: Mon, 4 Mar 2024 09:54:09 +0100
+Subject: [PATCH] mfreadwrite/reader: Rely on the video processor sample
+ allocator.
-What it fixes: a game that plays video through a Media Foundation source reader with a D3D11
-device manager (Unity's WindowsVideoMedia, Unreal's WmfMedia) asks DXGI for a shared handle on
-each decoded frame's texture. The reader in this tree allocates those textures itself, without
-the shared flags the video processor's own allocator would set from MF_SA_D3D11_SHARED, so DXMT
-(which implements sharing through D3DKMT since 0.72) answers a null handle and the frame never
-reaches the game: The Last Flame's menu video logs "Got null handle from
-IDXGIResource::GetSharedHandle" ~14 times a second and never shows (highball#99, measured
-2026-09-19 on x64-crossover26.3-r10, DXMT 0.80). 3Shain's diagnosis on 3Shain/dxmt#135 (Blue
-Archive cutscenes) names this patch as the fix. The two companion leak fixes from Proton
-(7bb1b147, e21244f7) are already in CrossOver 26.3's reader.c.
-
-Verification: pending the first engine built with it (target: The Last Flame Prologue, Steam
-2517810, menu video visible under DXMT; then Blue Archive-class Unity titles).
-
-Upstream status: Proton-only as of 2026-09; not in upstream Wine 11.0 or CrossOver 26.3.
+CW-Bug-Id: #20833
+---
+ dlls/mfreadwrite/reader.c | 143 --------------------------------------
+ 1 file changed, 143 deletions(-)
diff --git a/dlls/mfreadwrite/reader.c b/dlls/mfreadwrite/reader.c
index 19e1bf6b1f93..fcb8d8dec949 100644
diff --git a/patches/highball/0024-kernelbase-app-packages-from-the-registry.patch b/patches/engine/0105-proton-app-packages.patch
similarity index 77%
rename from patches/highball/0024-kernelbase-app-packages-from-the-registry.patch
rename to patches/engine/0105-proton-app-packages.patch
index d57089ec793..22a4e630177 100644
--- a/patches/highball/0024-kernelbase-app-packages-from-the-registry.patch
+++ b/patches/engine/0105-proton-app-packages.patch
@@ -1,25 +1,20 @@
-App packages from the registry: GetPackagesByPackageFamily lists the packages registered under
-HKLM\Software\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\AppModel\PackageRepository\Packages,
-GetPackagePath reads a package's Path there, and PackageFullNameFromId builds the full name they need. wine.inf
-registers the Visual C++ libraries framework package (Microsoft.VCLibs.140.00, pointing at system32, syswow64 for
-WoW64) the way Proton does.
-
-Wine's GetPackagesByPackageFamily is a stub that answers success with zero packages (since Wine 8.8), and Forza
-Horizon 4, a former Microsoft Store game whose Steam build still looks up Microsoft.VCLibs.140.00_8wekyb3d8bbwe,
-then never gets past its start with no window (Wine bug 55397, highball#268, also Steelrising). Proton has had
-real implementations since 2021. GetPackagesByPackageFamily, GetPackagePath and PackageFullNameFromId are taken
-from Proton (ValveSoftware/wine, Paul Gofman, LGPL), with the WCHAR ** parameter Windows has; the wine.inf
-entries are Proton's. CrossOver 26.3 had neither GetPackagePath nor PackageFullNameFromId.
+Proton (ValveSoftware/wine, Paul Gofman): app packages from the registry, for games that look
+up the Visual C++ framework package (Forza Horizon 4, Steelrising). Commits 7b4037421e ("kernel32:
+Implement GetPackagesByPackageFamily()"), 8089c27dae ("kernel32: Implement GetPackagePath()"),
+c18ebc392d ("kernel32: Implement PackageFullNameFromId()") and 09fbb2c010 ("wine.inf: Create
+package repository for VCLibs.140."), fitted to the CrossOver 26.3 tree, tests left out.
diff --git a/dlls/kernel32/kernel32.spec b/dlls/kernel32/kernel32.spec
-index 6a35f53..852ee11 100644
+index 6a35f53..8bc12e4 100644
--- a/dlls/kernel32/kernel32.spec
+++ b/dlls/kernel32/kernel32.spec
-@@ -783,6 +783,7 @@
+@@ -782,7 +782,8 @@
+ @ stdcall -import GetUserPreferredUILanguages(long ptr ptr ptr)
@ stdcall GetPackageFamilyName(long ptr ptr) kernelbase.GetPackageFamilyName
@ stdcall GetPackageFullName(long ptr ptr) kernelbase.GetPackageFullName
- @ stdcall GetPackagesByPackageFamily(wstr ptr ptr ptr ptr) kernelbase.GetPackagesByPackageFamily
-+@ stdcall GetPackagePath(ptr long ptr ptr) kernelbase.GetPackagePath
+-@ stdcall GetPackagesByPackageFamily(wstr ptr ptr ptr ptr) kernelbase.GetPackagesByPackageFamily
++@ stdcall -import GetPackagePath(ptr long ptr ptr)
++@ stdcall -import GetPackagesByPackageFamily(wstr ptr ptr ptr ptr)
@ stdcall GetPackagePathByFullName(wstr ptr wstr) kernelbase.GetPackagePathByFullName
@ stdcall -import GetPhysicallyInstalledSystemMemory(ptr)
@ stdcall -import GetPriorityClass(long)
@@ -54,38 +49,111 @@ index 3c880bf..1610ad5 100644
@ stdcall PackageIdFromFullName(wstr long ptr ptr)
# @ stub PackageIdFromProductId
diff --git a/dlls/kernelbase/version.c b/dlls/kernelbase/version.c
-index 495325b..6d09a97 100644
+index 495325b..966ec9c 100644
--- a/dlls/kernelbase/version.c
+++ b/dlls/kernelbase/version.c
-@@ -32,6 +32,7 @@
- #define WIN32_NO_STATUS
- #include "windef.h"
- #include "winbase.h"
-+#include "winreg.h"
- #include "winver.h"
- #include "winuser.h"
+@@ -37,6 +37,7 @@
#include "winnls.h"
-@@ -44,6 +45,10 @@
+ #include "winternl.h"
+ #include "winerror.h"
++#include "winreg.h"
+ #include "appmodel.h"
- WINE_DEFAULT_DEBUG_CHANNEL(ver);
+ #include "kernelbase.h"
+@@ -159,6 +160,8 @@ static const struct
+ }
+ };
-+/* Where installed app packages are registered (Highball: from Proton, Paul Gofman). */
+static const WCHAR packages_key_name[] = L"Software\\Classes\\Local Settings\\Software\\Microsoft\\Windows"
+ L"\\CurrentVersion\\AppModel\\PackageRepository\\Packages";
+
+ /******************************************************************************
+ * init_current_version
+@@ -1644,22 +1647,6 @@ LONG WINAPI /* DECLSPEC_HOTPATCH */ GetPackageFamilyName( HANDLE process, UINT32
+ return APPMODEL_ERROR_NO_PACKAGE;
+ }
+
+-/***********************************************************************
+- * GetPackagesByPackageFamily (kernelbase.@)
+- */
+-LONG WINAPI DECLSPEC_HOTPATCH GetPackagesByPackageFamily(const WCHAR *family_name, UINT32 *count,
+- WCHAR *full_names, UINT32 *buffer_len, WCHAR *buffer)
+-{
+- FIXME( "(%s %p %p %p %p): stub\n", debugstr_w(family_name), count, full_names, buffer_len, buffer );
+-
+- if (!count || !buffer_len)
+- return ERROR_INVALID_PARAMETER;
+-
+- *count = 0;
+- *buffer_len = 0;
+- return ERROR_SUCCESS;
+-}
+-
+ /***********************************************************************
+ * GetPackagePathByFullName (kernelbase.@)
+ */
+@@ -1698,6 +1685,16 @@ static UINT32 processor_arch_from_string(const WCHAR *str, unsigned int len)
+ return ~0u;
+ }
+
++const WCHAR *string_from_processor_arch(UINT32 code)
++{
++ unsigned int i;
++
++ for (i = 0; i < ARRAY_SIZE(arch_names); ++i)
++ if (code == arch_names[i].code)
++ return arch_names[i].name;
++ return NULL;
++}
+
- typedef struct
- {
- WORD offset;
-@@ -1647,17 +1652,111 @@ LONG WINAPI /* DECLSPEC_HOTPATCH */ GetPackageFamilyName( HANDLE process, UINT32
/***********************************************************************
- * GetPackagesByPackageFamily (kernelbase.@)
+ * PackageIdFromFullName (kernelbase.@)
*/
--LONG WINAPI DECLSPEC_HOTPATCH GetPackagesByPackageFamily(const WCHAR *family_name, UINT32 *count,
-- WCHAR *full_names, UINT32 *buffer_len, WCHAR *buffer)
+@@ -1786,3 +1783,229 @@ LONG WINAPI PackageIdFromFullName(const WCHAR *full_name, UINT32 flags, UINT32 *
+
+ return ERROR_SUCCESS;
+ }
++
++
++/***********************************************************************
++ * PackageFullNameFromId (kernelbase.@)
++ */
++LONG WINAPI PackageFullNameFromId(const PACKAGE_ID *package_id, UINT32 *length, WCHAR *full_name)
++{
++ WCHAR ver_str[5 * 4 + 3 + 1];
++ const WCHAR *arch_str;
++ UINT32 have_length;
++
++ TRACE("package_id %p, length %p, full_name %p.\n", package_id, length, full_name);
++
++ if (!package_id || !length)
++ return ERROR_INVALID_PARAMETER;
++ if (!full_name && *length)
++ return ERROR_INVALID_PARAMETER;
++ if (!package_id->name || !package_id->resourceId || !package_id->publisherId
++ || !(arch_str = string_from_processor_arch(package_id->processorArchitecture)))
++ return ERROR_INVALID_PARAMETER;
++
++ swprintf(ver_str, ARRAY_SIZE(ver_str), L"%u.%u.%u.%u", package_id->version.Major,
++ package_id->version.Minor, package_id->version.Build, package_id->version.Revision);
++ have_length = *length;
++ *length = lstrlenW(package_id->name) + 1 + lstrlenW(ver_str) + 1 + lstrlenW(arch_str) + 1
++ + lstrlenW(package_id->resourceId) + 1 + lstrlenW(package_id->publisherId) + 1;
++
++ if (have_length < *length)
++ return ERROR_INSUFFICIENT_BUFFER;
++
++ swprintf(full_name, *length, L"%s_%s_%s_%s_%s", package_id->name, ver_str, arch_str, package_id->resourceId, package_id->publisherId);
++ return ERROR_SUCCESS;
++}
++
++
++/***********************************************************************
++ * GetPackagesByPackageFamily (kernelbase.@)
++ */
+LONG WINAPI GetPackagesByPackageFamily(const WCHAR *family_name, UINT32 *count, WCHAR **full_names,
+ UINT32 *buffer_length, WCHAR *buffer)
- {
-- FIXME( "(%s %p %p %p %p): stub\n", debugstr_w(family_name), count, full_names, buffer_len, buffer );
++{
+ UINT32 curr_count, curr_length, package_id_buf_size, size;
+ unsigned int i, name_len, publisher_id_len;
+ DWORD subkey_count, max_key_len, length;
@@ -100,14 +168,10 @@ index 495325b..6d09a97 100644
+
+ if (!buffer_length || !count || !family_name)
+ return ERROR_INVALID_PARAMETER;
-
-- if (!count || !buffer_len)
++
+ if ((*buffer_length || *count) && (!full_names || !buffer))
- return ERROR_INVALID_PARAMETER;
-
-- *count = 0;
-- *buffer_len = 0;
-- return ERROR_SUCCESS;
++ return ERROR_INVALID_PARAMETER;
++
+ if (!(publisher_id = wcschr(family_name, L'_')))
+ return ERROR_INVALID_PARAMETER;
+
@@ -192,62 +256,8 @@ index 495325b..6d09a97 100644
+ *buffer_length = curr_length;
+
+ return short_buffer ? ERROR_INSUFFICIENT_BUFFER : ERROR_SUCCESS;
- }
-
- /***********************************************************************
-@@ -1698,6 +1797,16 @@ static UINT32 processor_arch_from_string(const WCHAR *str, unsigned int len)
- return ~0u;
- }
-
-+static const WCHAR *string_from_processor_arch(UINT32 code)
-+{
-+ unsigned int i;
-+
-+ for (i = 0; i < ARRAY_SIZE(arch_names); ++i)
-+ if (code == arch_names[i].code)
-+ return arch_names[i].name;
-+ return NULL;
+}
+
- /***********************************************************************
- * PackageIdFromFullName (kernelbase.@)
- */
-@@ -1786,3 +1895,116 @@ LONG WINAPI PackageIdFromFullName(const WCHAR *full_name, UINT32 flags, UINT32 *
-
- return ERROR_SUCCESS;
- }
-+
-+/***********************************************************************
-+ * PackageFullNameFromId (kernelbase.@)
-+ */
-+LONG WINAPI PackageFullNameFromId(const PACKAGE_ID *package_id, UINT32 *length, WCHAR *full_name)
-+{
-+ WCHAR ver_str[5 * 4 + 3 + 1];
-+ const WCHAR *arch_str;
-+ UINT32 have_length;
-+
-+ TRACE("package_id %p, length %p, full_name %p.\n", package_id, length, full_name);
-+
-+ if (!package_id || !length)
-+ return ERROR_INVALID_PARAMETER;
-+ if (!full_name && *length)
-+ return ERROR_INVALID_PARAMETER;
-+ if (!package_id->name || !package_id->resourceId || !package_id->publisherId
-+ || !(arch_str = string_from_processor_arch(package_id->processorArchitecture)))
-+ return ERROR_INVALID_PARAMETER;
-+
-+ swprintf(ver_str, ARRAY_SIZE(ver_str), L"%u.%u.%u.%u", package_id->version.Major,
-+ package_id->version.Minor, package_id->version.Build, package_id->version.Revision);
-+ have_length = *length;
-+ *length = lstrlenW(package_id->name) + 1 + lstrlenW(ver_str) + 1 + lstrlenW(arch_str) + 1
-+ + lstrlenW(package_id->resourceId) + 1 + lstrlenW(package_id->publisherId) + 1;
-+
-+ if (have_length < *length)
-+ return ERROR_INSUFFICIENT_BUFFER;
-+
-+ swprintf(full_name, *length, L"%s_%s_%s_%s_%s", package_id->name, ver_str, arch_str, package_id->resourceId, package_id->publisherId);
-+ return ERROR_SUCCESS;
-+}
+
+/***********************************************************************
+ * GetPackagePath (kernelbase.@)
@@ -329,8 +339,23 @@ index 495325b..6d09a97 100644
+ HeapFree(GetProcessHeap(), 0, key_name);
+ return ret;
+}
+diff --git a/include/appmodel.h b/include/appmodel.h
+index 8a2e85e..be465bd 100644
+--- a/include/appmodel.h
++++ b/include/appmodel.h
+@@ -92,6 +92,10 @@ LONG WINAPI AppPolicyGetProcessTerminationMethod(HANDLE token, AppPolicyProcessT
+ LONG WINAPI AppPolicyGetShowDeveloperDiagnostic(HANDLE token, AppPolicyShowDeveloperDiagnostic *policy);
+ LONG WINAPI AppPolicyGetThreadInitializationType(HANDLE token, AppPolicyThreadInitializationType *policy);
+ LONG WINAPI AppPolicyGetWindowingModel(HANDLE processToken, AppPolicyWindowingModel *policy);
++LONG WINAPI GetPackagePath(const PACKAGE_ID *package_id, const UINT32 reserved, UINT32 *length, WCHAR *path);
++LONG WINAPI GetPackagesByPackageFamily(const WCHAR *family_name, UINT32 *count, WCHAR **full_names,
++ UINT32 *buffer_length, WCHAR *buffer);
++LONG WINAPI PackageFullNameFromId(const PACKAGE_ID *package_id, UINT32 *length, WCHAR *full_name);
+ LONG WINAPI PackageIdFromFullName(const WCHAR *full_name, UINT32 flags, UINT32 *buffer_length, BYTE *buffer);
+
+ #if defined(__cplusplus)
diff --git a/loader/wine.inf.in b/loader/wine.inf.in
-index 942a2cf..10ded28 100644
+index 942a2cf..45630fc 100644
--- a/loader/wine.inf.in
+++ b/loader/wine.inf.in
@@ -82,6 +82,7 @@ AddReg=\
@@ -353,7 +378,7 @@ index 942a2cf..10ded28 100644
WineFakeDlls=FakeDllsWin64
AddReg=\
CurrentVersionWow64.ntarm64,\
-+ Packages.ntarm64,\
++ Packages.arm64,\
VCRuntime.ntamd64,\
VCRuntime.ntarm64,\
VersionInfo
@@ -365,17 +390,17 @@ index 942a2cf..10ded28 100644
VCRuntime.ntamd64,\
VCRuntime.ntx86
-@@ -214,6 +218,7 @@ AddService=NDIS,0x800,NDISService
- AddService=nsiproxy,0x800,NsiProxyService
-
- [Strings]
+@@ -220,6 +224,7 @@ CurrentVersion="Software\Microsoft\Windows\CurrentVersion"
+ CurrentVersionNT="Software\Microsoft\Windows NT\CurrentVersion"
+ FontSubStr="Software\Microsoft\Windows NT\CurrentVersion\FontSubstitutes"
+ Control="System\CurrentControlSet\Control"
+Packages="Software\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\AppModel\PackageRepository\Packages"
- MciExtStr="Software\Microsoft\Windows NT\CurrentVersion\MCI Extensions"
- Mci32Str="Software\Microsoft\Windows NT\CurrentVersion\MCI32"
- CurrentVersion="Software\Microsoft\Windows\CurrentVersion"
-@@ -637,6 +642,18 @@ HKCU,Software\Microsoft\Windows\Shell\Associations\UrlAssociations\ftp\UserChoic
- HKCU,Software\Microsoft\Windows\Shell\Associations\UrlAssociations\http\UserChoice,"ProgId",,"http"
- HKCU,Software\Microsoft\Windows\Shell\Associations\UrlAssociations\https\UserChoice,"ProgId",,"https"
+
+ [Classes]
+ HKCR,.chm,,2,"chm.file"
+@@ -641,6 +646,18 @@ HKCU,Software\Microsoft\Windows\Shell\Associations\UrlAssociations\https\UserCho
+ HKLM,"Software\Microsoft\OLE","EnableDCOM",,"Y"
+ HKLM,"Software\Microsoft\OLE","EnableRemoteConnect",,"N"
+[Packages]
+HKLM,"%Packages%\Microsoft.VCLibs.140.00_14.0.29231.0_x86__8wekyb3d8bbwe","Path",0x00020002,"%SystemRoot%\system32"
@@ -386,9 +411,9 @@ index 942a2cf..10ded28 100644
+[Packages.wow64]
+HKLM,"%Packages%\Microsoft.VCLibs.140.00_14.0.29231.0_x86__8wekyb3d8bbwe","Path",0x00020002,"%SystemRoot%\syswow64"
+
-+[Packages.ntarm64]
++[Packages.arm64]
+HKLM,"%Packages%\Microsoft.VCLibs.140.00_14.0.29231.0_arm64__8wekyb3d8bbwe","Path",0x00020002,"%SystemRoot%\system32"
+
- [OLE]
- HKLM,"Software\Microsoft\OLE","EnableDCOM",,"Y"
- HKLM,"Software\Microsoft\OLE","EnableRemoteConnect",,"N"
+ [Printing]
+ HKLM,%Control%\Print\Monitors\Local Port,"Driver",2,"localspl.dll"
+ HKLM,%Control%\Print\Printers,"DefaultSpoolDirectory",2,"%11%\spool\printers"
diff --git a/patches/highball/0005-ntdll-yield-after-auto-event-set.patch b/patches/highball/0005-ntdll-yield-after-auto-event-set.patch
deleted file mode 100644
index aeed6129d38..00000000000
--- a/patches/highball/0005-ntdll-yield-after-auto-event-set.patch
+++ /dev/null
@@ -1,39 +0,0 @@
-diff -ruN a/dlls/ntdll/unix/msync.c b/dlls/ntdll/unix/msync.c
---- a/dlls/ntdll/unix/msync.c 2026-09-04 15:37:32
-+++ b/dlls/ntdll/unix/msync.c 2026-09-04 15:37:32
-@@ -700,7 +700,16 @@
- LONG current;
-
- if (!(current = __atomic_exchange_n( &event->signaled, 1, __ATOMIC_SEQ_CST )))
-+ {
- signal_all( (void *)event, obj );
-+ /* Highball: Windows boosts the thread woken by an auto-reset event so it usually runs
-+ * before the setter continues. Without that, a setter that signals twice in a row
-+ * before the waiter is scheduled loses the second wake-up (the event is already
-+ * signaled) and a job hand-off that relies on one wake per signal deadlocks. Seen in
-+ * CS:GO's map load on macOS 26 under Rosetta. Yield after the transition so the
-+ * waiter gets the CPU first. */
-+ if (event->msync_type == MSYNC_AUTO_EVENT) sched_yield();
-+ }
-
- if (prev_state) *prev_state = current;
-
-diff -ruN a/dlls/ntdll/unix/sync.c b/dlls/ntdll/unix/sync.c
---- a/dlls/ntdll/unix/sync.c 2026-09-04 15:37:32
-+++ b/dlls/ntdll/unix/sync.c 2026-09-04 15:37:32
-@@ -1268,7 +1268,14 @@
- req->handle = wine_server_obj_handle( handle );
- req->op = SET_EVENT;
- ret = wine_server_call( req );
-- if (!ret && prev_state) *prev_state = reply->state;
-+ if (!ret)
-+ {
-+ if (prev_state) *prev_state = reply->state;
-+ /* Highball: let a thread the server just woke run before we signal again
-+ * (see msync_set_event_obj); the server does not tell us the event type, and
-+ * the yield is cheap, so it applies to every 0->1 transition here. */
-+ if (!reply->state) sched_yield();
-+ }
- }
- SERVER_END_REQ;
- return ret;
diff --git a/patches/highball/0014-msync-unregister-early-return.patch b/patches/highball/0014-msync-unregister-early-return.patch
deleted file mode 100644
index 474c82cc40b..00000000000
--- a/patches/highball/0014-msync-unregister-early-return.patch
+++ /dev/null
@@ -1,78 +0,0 @@
-Highball: msync, a multi-object wait that returns early takes its registration back (highball#224)
-
-msync_wait_multiple() registers the thread with the wineserver's msync thread for every object,
-then spins until the server has answered. If an object becomes available during the spin, it
-returned STATUS_PENDING after lowering the waiter counts, without telling the server. The server
-still processed the registration and, when nothing was signaled by then, kept the thread on each
-object's list. Nothing took it off again: the lowered counts mean a later signal does not message
-the server either, so an object that is never signaled (a quit event, say) grows by one node per
-lost race. On the server side, a registration that met a signaled object at index i unregistered
-objects 0..i-1 only when i > 1, so a wait on {quit, work} with work signaled leaked quit's node
-every time. After 524288 nodes the pool printed "msync: warn: node memory pool exhausted" on every
-further allocation and fell back to malloc, and the wineserver grew until the Mac ran out of memory.
-
-- client: the early return goes through server_remove_wait() like every other exit, which also
- lowers the alert object's count that the old loop left raised.
-- server: unregister objects 0..i-1 whenever i > 0.
-- server: the pool warning prints once.
-
-Reproduced 2026-09-30 on an M4, macOS 27.0, with msyncleak.exe (a worker sets an auto-reset event
-in a loop while the main thread waits on {quit, work}): the pool runs out within seconds and the
-wineserver's RSS grows from 30 MB to 77 MB in 30 s on x64-crossover26.3-r12 (33 MB to 87 MB on
-Highball's Wine 10 engine, x64-sikarugir10.0_6-r15, same symptom). My Summer Car (highball#224)
-fills its log with the same warning over a long session.
-
-Upstream: msync is CrossOver's (and Sikarugir's) implementation, not WineHQ's.
-
---- a/dlls/ntdll/unix/msync.c 2026-09-30 23:27:09
-+++ b/dlls/ntdll/unix/msync.c 2026-09-30 23:27:09
-@@ -377,15 +377,14 @@
- {
- if (check_shm_contention( objs_shm, alert_obj_shm, count, tid ))
- {
-- int i;
-- for (i = 0; i < count; i++)
-- {
-- struct event *obj = (struct event *)objs_shm[i];
--
-- int refs = __atomic_sub_fetch( &obj->multiple_waiters, 1, __ATOMIC_SEQ_CST);
-- if (refs < 0)
-- __atomic_store_n( &obj->multiple_waiters, 0, __ATOMIC_SEQ_CST);
-- }
-+ /* The server still gets the registration sent above and, if nothing it waits
-+ * for is signaled by then, keeps this thread on every object's list. Nothing
-+ * took it off again, so each lost race leaked list nodes in the wineserver
-+ * without bound (pool exhausted, then malloc per wait, gigabytes after hours
-+ * of a game that waits on several objects in a hot loop). Unregister like
-+ * every other exit does; this also drops the alert object's waiter count,
-+ * which the loop here used to leave raised. */
-+ server_remove_wait( msgh_id, objs, objs_shm, alert_obj, alert_obj_shm, count );
- return STATUS_PENDING;
- }
- }
---- a/server/msync.c
-+++ b/server/msync.c
-@@ -177,7 +177,13 @@
- {
- if (pool->count == 0)
- {
-- fprintf( stderr, "msync: warn: node memory pool exhausted\n" );
-+ static int warned;
-+ /* Once: it used to print on every allocation past the pool, millions of lines. */
-+ if (!warned)
-+ {
-+ warned = 1;
-+ fprintf( stderr, "msync: warn: node memory pool exhausted\n" );
-+ }
- return malloc( sizeof(struct tid_node) );
- }
- return pool->free_nodes[--pool->count];
-@@ -508,7 +514,7 @@
- val = __atomic_load_n( &obj->low, __ATOMIC_SEQ_CST );
- if ((is_mutex && (val == 0 || val == ~0 || val == tid)) || (!is_mutex && val != 0))
- {
-- if (i > 1) unregister_wait( &receive_message, tid, i );
-+ if (i > 0) unregister_wait( &receive_message, tid, i ); /* objects 0..i-1 were added above */
- wake_tid( tid );
- break;
- }
diff --git a/patches/highball/0015-winecoreaudio-io-buffer-under-half-a-period.patch b/patches/highball/0015-winecoreaudio-io-buffer-under-half-a-period.patch
deleted file mode 100644
index e615acc3d0e..00000000000
--- a/patches/highball/0015-winecoreaudio-io-buffer-under-half-a-period.patch
+++ /dev/null
@@ -1,58 +0,0 @@
-Highball: winecoreaudio, each pull from the device stays under half a period (highball#127)
-
-The HAL output unit asks Wine's render callback for its whole I/O buffer at once, 512 frames by
-default, which at 48 kHz is 10.7 ms. A shared-mode client is woken every 10 ms period, and a game
-that keeps about one period queued then had less than the device asked for at most pulls; the
-callback played the rest as silence. Counter-Strike 2's menu music on an M4 at 48 kHz: 324 dropouts
-of about 8 ms in two minutes, none with the output set to 96 kHz, where the same 512 frames last
-5.3 ms (measured 2026-10-01 with a raw capture, engine r17). That is the community fix (Audio MIDI
-Setup, 88.2 or 96 kHz), which Bluetooth headphones and most monitors cannot use.
-
-Before the unit is initialized, a render stream now sets the unit's I/O buffer to half its period
-at the device's rate (240 frames at 48 kHz), when the current buffer is larger. The buffer size is
-per process, so other apps keep theirs, and a failure only logs.
-
-Trial result 2026-10-01 (run 36806082052, build engine-wine-11.0-20261001T024555Z-0015-coreaudio-trial):
-on an M4 at 48 kHz, Counter-Strike 2's menu music over the same 95 s had 20 dropouts on r12 and none
-with this build's winecoreaudio.so laid over r12 (nothing else changed); no failure warning from the
-new call. The same cap applied from outside Wine (an AudioUnitInitialize interposer) took the
-Sikarugir default engine from 324 dropouts in two minutes to none. The Half-Life 2 demo had none to
-begin with: the fault needs a game that keeps little queued.
-
-Upstream: not reported yet.
-
---- a/dlls/winecoreaudio.drv/coreaudio.c
-+++ b/dlls/winecoreaudio.drv/coreaudio.c
-@@ -791,6 +791,32 @@
- if (authstatus == 0)
- ERR_(winediag)("Microphone/audio capture permission was denied. "
- "This can be enabled under Security & Privacy in System Preferences.\n");
-+ }
-+
-+ if(stream->flow == eRender){
-+ /* Highball: keep each pull from the device under half a period. The device asks for
-+ * its whole I/O buffer at once, 512 frames by default, which at 48 kHz is 10.7 ms,
-+ * longer than the 10 ms period a shared-mode client is woken for. A game that keeps
-+ * about one period queued (Counter-Strike 2) then had too little at most pulls, and
-+ * the rest of the pull was played as silence: 324 dropouts of about 8 ms in two minutes
-+ * of its menu music on an M4 at 48 kHz, none at 96 kHz where the same 512 frames last
-+ * 5.3 ms (highball#127). The buffer size is per process, so other apps keep theirs. */
-+ AudioStreamBasicDescription hw;
-+ UInt32 hw_size = sizeof(hw), cur = 0, cur_size = sizeof(cur), frames;
-+ if(AudioUnitGetProperty(stream->unit, kAudioUnitProperty_StreamFormat, kAudioUnitScope_Output, 0,
-+ &hw, &hw_size) == noErr && hw.mSampleRate > 0 &&
-+ AudioUnitGetProperty(stream->unit, kAudioDevicePropertyBufferFrameSize, kAudioUnitScope_Global, 0,
-+ &cur, &cur_size) == noErr){
-+ frames = muldiv(stream->period / 2, (int)hw.mSampleRate, 10000000);
-+ if(frames > 0 && cur > frames){
-+ sc = AudioUnitSetProperty(stream->unit, kAudioDevicePropertyBufferFrameSize, kAudioUnitScope_Global, 0,
-+ &frames, sizeof(frames));
-+ if(sc != noErr)
-+ WARN("Couldn't set the I/O buffer to %u frames: %x\n", (unsigned)frames, (int)sc);
-+ else
-+ TRACE("I/O buffer %u -> %u frames at %u Hz\n", (unsigned)cur, (unsigned)frames, (unsigned)hw.mSampleRate);
-+ }
-+ }
- }
-
- sc = AudioUnitInitialize(stream->unit);
diff --git a/patches/highball/0017-kernelbase-getintegrateddisplaysize-stub.patch b/patches/highball/0017-kernelbase-getintegrateddisplaysize-stub.patch
deleted file mode 100644
index 1e911941320..00000000000
--- a/patches/highball/0017-kernelbase-getintegrateddisplaysize-stub.patch
+++ /dev/null
@@ -1,37 +0,0 @@
-kernelbase: GetIntegratedDisplaySize() exists, as the stub upstream Wine has.
-
-Upstream Wine c68ed23672 (Paul Gofman, 2025-11-20, "kernelbase: Add stub for
-GetIntegratedDisplaySize()"), which the CrossOver 26.3 tree does not carry: its kernelbase.spec still
-has the entry commented out. With no export at all the loader binds a program's import to the
-"unimplemented function" thunk, and calling it raises.
-
-Forza Horizon 6 imports the function from api-ms-win-core-sysinfo-l1-2-3 and calls it once its
-window is up, to learn whether it runs on a handheld. On x64-crossover26.3-r17 with D3DMetal 4.0b2
-(M4, macOS 27.0, 2026-10-05) the game opened its 1920x1080 window, compiled pipelines and then
-stopped with "Call from 00006FFFFFF9EC2A to unimplemented function
-api-ms-win-core-sysinfo-l1-2-3.dll.GetIntegratedDisplaySize, aborting" and its own crash dialog.
-The game returns the HRESULT to its caller, so a failure is an answer it accepts.
-
---- a/dlls/kernelbase/kernelbase.spec
-+++ b/dlls/kernelbase/kernelbase.spec
-@@ -569,7 +569,7 @@
- @ stdcall GetGeoInfoEx(ptr long ptr long)
- @ stdcall GetHandleInformation(long ptr)
- # @ stub GetHivePath
--# @ stub GetIntegratedDisplaySize
-+@ stdcall GetIntegratedDisplaySize(ptr)
- # @ stub GetIsEdpEnabled
- @ stdcall GetKernelObjectSecurity(long long ptr long ptr)
- @ stdcall GetLargePageMinimum()
---- a/dlls/kernelbase/main.c
-+++ b/dlls/kernelbase/main.c
-@@ -635,3 +635,9 @@ HRESULT WINAPI GetAcceptLanguagesW(WCHAR *langbuf, DWORD *buflen)
- *buflen = 0;
- return E_NOT_SUFFICIENT_BUFFER;
- }
-+
-+HRESULT WINAPI GetIntegratedDisplaySize( double *sz_inches )
-+{
-+ FIXME( "%p stub.\n", sz_inches );
-+ return E_NOTIMPL;
-+}
diff --git a/patches/highball/0018-macos-commit-charge-is-the-footprint.patch b/patches/highball/0018-macos-commit-charge-is-the-footprint.patch
deleted file mode 100644
index 84c62bf9a4c..00000000000
--- a/patches/highball/0018-macos-commit-charge-is-the-footprint.patch
+++ /dev/null
@@ -1,49 +0,0 @@
-macOS: a process's commit charge is its memory footprint, not its address space.
-
-fill_vm_counters() reports PagefileUsage, and through it PrivateUsage, from the Mach task's
-virtual_size. That is address space: a 64-bit process under Rosetta maps tens of gigabytes it never
-touches. The Linux branch reports RssAnon + VmSwap, memory the process is charged for; the macOS
-counterpart is the task's phys_footprint (dirty and compressed pages), which is also what Activity
-Monitor shows. Upstream Wine has the same line today.
-
-Measured on an M4 (macOS 27.0, x64-crossover26.3-r15): a console program with a 9 MB working set
-reads PagefileUsage = 41,987 MB, and still 41,987 MB after it commits and touches 512 MB. Forza
-Horizon 6 compares the figure with physical memory: in play it warned about low memory with
-"87 GB / 32 GB" on screen while the process's resident size was 5.8 GB and the machine had 59% of
-its memory free, and its crash report carries MEM_USED 87180247040 against MEM_LIMIT 34359734272
-(2026-10-05). A game that budgets textures from this number budgets from nonsense.
-
-The peak follows the current value, as in the Linux branch.
-
---- a/dlls/ntdll/unix/process.c
-+++ b/dlls/ntdll/unix/process.c
-@@ -1515,6 +1515,9 @@
- #if defined(MACH_TASK_BASIC_INFO)
- struct mach_task_basic_info info;
- mach_msg_type_number_t infoCount;
-+#ifdef TASK_VM_INFO
-+ task_vm_info_data_t vm_info;
-+#endif
-
- if (unix_pid != -1) return; /* FIXME: Retrieve information for other processes. */
-
-@@ -1525,8 +1528,19 @@
- pvmi->PagefileUsage = info.virtual_size;
- pvmi->WorkingSetSize = info.resident_size;
- pvmi->PeakWorkingSetSize = info.resident_size_max;
-+ }
-+#ifdef TASK_VM_INFO
-+ /* The commit charge is memory the process is charged for, not address space. The footprint
-+ * is what the kernel charges the task (dirty and compressed pages), the counterpart of the
-+ * RssAnon + VmSwap sum used on Linux. */
-+ infoCount = TASK_VM_INFO_COUNT;
-+ if (task_info( mach_task_self(), TASK_VM_INFO, (task_info_t)&vm_info, &infoCount ) == KERN_SUCCESS)
-+ {
-+ pvmi->PagefileUsage = vm_info.phys_footprint;
-+ pvmi->PeakPagefileUsage = pvmi->PagefileUsage;
- }
- #endif
-+#endif
- }
-
- #elif defined(linux)
diff --git a/patches/highball/0019-advapi32-credenumerate-empty-keychain-is-not-an-error.patch b/patches/highball/0019-advapi32-credenumerate-empty-keychain-is-not-an-error.patch
deleted file mode 100644
index d95f720ccd4..00000000000
--- a/patches/highball/0019-advapi32-credenumerate-empty-keychain-is-not-an-error.patch
+++ /dev/null
@@ -1,43 +0,0 @@
-advapi32: CredEnumerate() no longer fails when the macOS Keychain has no match for the filter.
-
-CredEnumerateW() collects credentials from the registry, then from the host's store through
-mountmgr. On macOS that store is the Keychain, and mountmgr's search_credentials() returns
-STATUS_NOT_FOUND when no Keychain item matches the filter. CredEnumerateW() only forgave
-ERROR_NOT_SUPPORTED (the answer on Linux, where there is no host store), so on macOS a filter that
-matched registry credentials but no Keychain item failed the whole call with ERROR_NOT_FOUND and the
-registry matches were thrown away. Upstream Wine has the same two lines today.
-
-A program that keeps its own generic credentials and looks them up by prefix never finds them.
-The Xbox Live sign-in library does exactly that: it reads its device key with
-CredEnumerateW(L"Xbl|DeviceKey*") and its tokens with CredEnumerateW(L"Xbl|<title>|...*"). Measured
-on an M4 (macOS 27.0, x64-crossover26.3 r17 + 0017 + 0018) with Forza Horizon 6: the bottle held
-thirteen "Xbl..." generic credentials (an unfiltered CredEnumerateW listed them), every filtered
-call returned ERROR_NOT_FOUND (1168), and on each launch the game generated a new device key
-(BCryptGenerateKeyPair straight after the failed lookups, then CredWriteW of "Xbl|DeviceKey") and
-asked the player to sign in to Xbox again with a device code, six times in one evening
-(2026-10-05).
-
-An empty answer from the host is now treated like an unsupported host: the count from the
-registry decides, and ERROR_NOT_FOUND is still returned when nothing matched anywhere.
-
---- a/dlls/advapi32/cred.c
-+++ b/dlls/advapi32/cred.c
-@@ -1059,7 +1059,8 @@
- if (ret == ERROR_SUCCESS)
- {
- ret = host_enumerate_credentials(Filter, NULL, NULL, &len, Count);
-- if (ret == ERROR_NOT_SUPPORTED) ret = ERROR_SUCCESS;
-+ /* nothing matching in the host's store is not a failure, the registry may hold the matches */
-+ if (ret == ERROR_NOT_SUPPORTED || ret == ERROR_NOT_FOUND) ret = ERROR_SUCCESS;
- }
- if (ret == ERROR_SUCCESS && *Count == 0)
- ret = ERROR_NOT_FOUND;
-@@ -1085,7 +1086,7 @@
- if (ret == ERROR_SUCCESS)
- {
- ret = host_enumerate_credentials(Filter, *Credentials, buffer, &len, Count);
-- if (ret == ERROR_NOT_SUPPORTED) ret = ERROR_SUCCESS;
-+ if (ret == ERROR_NOT_SUPPORTED || ret == ERROR_NOT_FOUND) ret = ERROR_SUCCESS;
- }
- }
- else ret = ERROR_OUTOFMEMORY;
diff --git a/patches/highball/0020-winemac-retina-horzres-not-doubled.patch b/patches/highball/0020-winemac-retina-horzres-not-doubled.patch
deleted file mode 100644
index 61a11fae124..00000000000
--- a/patches/highball/0020-winemac-retina-horzres-not-doubled.patch
+++ /dev/null
@@ -1,32 +0,0 @@
-winemac: HORZRES and VERTRES are not doubled in retina mode.
-
-From athei/wine fa43d6db2 ("winemac: Don't double HORZRES and VERTRES in retina mode",
-LGPL like Wine). macdrv_GetDeviceCaps doubled both caps whenever retina mode was on, on top of
-the fallback that already reports monitors in pixels, so a retina process saw the screen twice as
-large there as through GetSystemMetrics and EnumDisplaySettings.
-
-Measured on an M4 (1920x1080 display, macOS 27.0, 2026-10-06) with a probe on x64-crossover26.3-r17,
-the same on the default Wine 10 engine: Retina resolution off, every call says 1920x1080. Retina on,
-GetSystemMetrics, EnumDisplaySettings and DESKTOPHORZRES say 3840x2160 and HORZRES/VERTRES say
-7680x4320. Team Fortress 2 centres its window from HORZRES (athei), and Red Dead Redemption 2 at
-1920x1080 fullscreen comes out cropped for a player with Retina on (highball#261).
-
---- a/dlls/winemac.drv/gdi.c
-+++ b/dlls/winemac.drv/gdi.c
-@@ -213,15 +213,10 @@ static INT macdrv_GetDeviceCaps(PHYSDEV dev, INT cap)
- case VERTSIZE:
- ret = vert_size;
- break;
-- case HORZRES:
-- case VERTRES:
- default:
- pthread_mutex_unlock(&device_data_mutex);
- dev = GET_NEXT_PHYSDEV( dev, pGetDeviceCaps );
-- ret = dev->funcs->pGetDeviceCaps( dev, cap );
-- if ((cap == HORZRES || cap == VERTRES) && retina_on)
-- ret *= 2;
-- return ret;
-+ return dev->funcs->pGetDeviceCaps( dev, cap );
- }
-
- TRACE("cap %d -> %d\n", cap, ret);
diff --git a/patches/highball/0022-mmdevapi-spatial-static-object-order.patch b/patches/highball/0022-mmdevapi-spatial-static-object-order.patch
deleted file mode 100644
index b78e0a2968d..00000000000
--- a/patches/highball/0022-mmdevapi-spatial-static-object-order.patch
+++ /dev/null
@@ -1,83 +0,0 @@
-CrossOver 26.3 mmdevapi: put spatial audio static objects in WAVEFORMATEXTENSIBLE channel order.
-
-Against CrossOver 26.3's dlls/mmdevapi/spatialaudio.c (same code as wine-11.0). Pairs with
-winecoreaudio-crossover26.3-spatial-mixer.patch.
-
-static_mask_to_channels gave the static objects channels in the order of the AudioObjectType list
-(front, centre, LFE, side, back, top, back centre). A WAVEFORMATEXTENSIBLE stream's channels follow the
-speaker bits in ascending order instead, where back left/right (0x10, 0x20) and back centre (0x100) come
-before side left/right (0x200, 0x400). So in a 7.1 or 7.1.4 bed the side and back channels were swapped.
-It also wrote the channel map in list order while objects look it up by AudioObjectType_to_index, so back
-centre (index 16) was never found. Each static object's channel is now the number of mask bits below its
-speaker, stored at its own index; unused entries stay ~0.
-
-diff --git a/dlls/mmdevapi/spatialaudio.c b/dlls/mmdevapi/spatialaudio.c
-index 8ae37cb..b12adb3 100644
---- a/dlls/mmdevapi/spatialaudio.c
-+++ b/dlls/mmdevapi/spatialaudio.c
-@@ -673,31 +673,42 @@ static WAVEFORMATEX *clone_fmtex(const WAVEFORMATEX *src)
-
- static void static_mask_to_channels(AudioObjectType static_mask, WORD *count, DWORD *mask, UINT32 *map)
- {
-- UINT32 out_chan = 0, map_idx = 0;
-+ static const struct { AudioObjectType type; DWORD speaker; } table[] = {
-+ { AudioObjectType_FrontLeft, SPEAKER_FRONT_LEFT },
-+ { AudioObjectType_FrontRight, SPEAKER_FRONT_RIGHT },
-+ { AudioObjectType_FrontCenter, SPEAKER_FRONT_CENTER },
-+ { AudioObjectType_LowFrequency, SPEAKER_LOW_FREQUENCY },
-+ { AudioObjectType_SideLeft, SPEAKER_SIDE_LEFT },
-+ { AudioObjectType_SideRight, SPEAKER_SIDE_RIGHT },
-+ { AudioObjectType_BackLeft, SPEAKER_BACK_LEFT },
-+ { AudioObjectType_BackRight, SPEAKER_BACK_RIGHT },
-+ { AudioObjectType_TopFrontLeft, SPEAKER_TOP_FRONT_LEFT },
-+ { AudioObjectType_TopFrontRight, SPEAKER_TOP_FRONT_RIGHT },
-+ { AudioObjectType_TopBackLeft, SPEAKER_TOP_BACK_LEFT },
-+ { AudioObjectType_TopBackRight, SPEAKER_TOP_BACK_RIGHT },
-+ { AudioObjectType_BackCenter, SPEAKER_BACK_CENTER },
-+ };
-+ UINT32 i;
-+
- *count = 0;
- *mask = 0;
--#define CONVERT_MASK(f, t) \
-- if(static_mask & f){ \
-- *count += 1; \
-- *mask |= t; \
-- map[map_idx++] = out_chan++; \
-- TRACE("mapping 0x%x to %u\n", f, out_chan - 1); \
-- }else{ \
-- map[map_idx++] = ~0; \
-- }
-- CONVERT_MASK(AudioObjectType_FrontLeft, SPEAKER_FRONT_LEFT);
-- CONVERT_MASK(AudioObjectType_FrontRight, SPEAKER_FRONT_RIGHT);
-- CONVERT_MASK(AudioObjectType_FrontCenter, SPEAKER_FRONT_CENTER);
-- CONVERT_MASK(AudioObjectType_LowFrequency, SPEAKER_LOW_FREQUENCY);
-- CONVERT_MASK(AudioObjectType_SideLeft, SPEAKER_SIDE_LEFT);
-- CONVERT_MASK(AudioObjectType_SideRight, SPEAKER_SIDE_RIGHT);
-- CONVERT_MASK(AudioObjectType_BackLeft, SPEAKER_BACK_LEFT);
-- CONVERT_MASK(AudioObjectType_BackRight, SPEAKER_BACK_RIGHT);
-- CONVERT_MASK(AudioObjectType_TopFrontLeft, SPEAKER_TOP_FRONT_LEFT);
-- CONVERT_MASK(AudioObjectType_TopFrontRight, SPEAKER_TOP_FRONT_RIGHT);
-- CONVERT_MASK(AudioObjectType_TopBackLeft, SPEAKER_TOP_BACK_LEFT);
-- CONVERT_MASK(AudioObjectType_TopBackRight, SPEAKER_TOP_BACK_RIGHT);
-- CONVERT_MASK(AudioObjectType_BackCenter, SPEAKER_BACK_CENTER);
-+ for (i = 0; i < ARRAY_SIZE(table); i++)
-+ if (static_mask & table[i].type) {
-+ *mask |= table[i].speaker;
-+ *count += 1;
-+ }
-+ /* WAVEFORMATEXTENSIBLE channels follow the speaker bits in ascending order, so a static object's
-+ * channel is the number of speakers in the mask below its own: back left/right (0x10, 0x20) and
-+ * back centre (0x100) come before side left/right (0x200, 0x400). */
-+ for (i = 0; i < 17; i++)
-+ map[i] = ~0;
-+ for (i = 0; i < ARRAY_SIZE(table); i++) {
-+ if (static_mask & table[i].type) {
-+ UINT32 idx = AudioObjectType_to_index(table[i].type);
-+ map[idx] = __builtin_popcount(*mask & (table[i].speaker - 1));
-+ TRACE("mapping 0x%x to %u\n", table[i].type, map[idx]);
-+ }
-+ }
- }
-
- static HRESULT activate_stream(SpatialAudioStreamImpl *stream)
diff --git a/patches/highball/0023-winecoreaudio-spatial-mixer-for-surround-beds.patch b/patches/highball/0023-winecoreaudio-spatial-mixer-for-surround-beds.patch
deleted file mode 100644
index 30aaed1c17f..00000000000
--- a/patches/highball/0023-winecoreaudio-spatial-mixer-for-surround-beds.patch
+++ /dev/null
@@ -1,306 +0,0 @@
-CrossOver 26.3 winecoreaudio: render a multichannel stream through AUSpatialMixer when the device has fewer channels.
-
-Against CrossOver 26.3's dlls/winecoreaudio.drv with Highball's patches 0001-0021 applied (the tree engine
-r22 is built from). Pairs with mmdevapi-crossover26.3-static-object-order.patch.
-
-What happens without it, measured on an M5 Max with macOS 27.0.1:
-- A Core Audio output unit given a 12-channel stream with Wine's bitmap layout (0x2D63F, 7.1.4) accepts it,
- but neither the unit nor an AudioConverter between a 7.1.4 layout and the stereo device mixes anything
- down: a tone in any channel other than front left and right comes out silent. That is why Forza Horizon 6
- lost Anna, dialogue and most of the engine on a Mac's speakers.
-- ca_setup_audiounit's "Couldn't set channel layout: -10851" only appears when the number of set bits in
- the channel mask differs from the channel count (12 channels with a stereo mask, or the reverse).
-- Apple's own 7.1.4 -> stereo matrix (kAudioFormatProperty_MatrixMixMap) is a plain fold: centre, sides,
- backs and heights at 0.707 to their side, LFE dropped.
-
-With it, a render stream whose format is 32-bit float WAVE_FORMAT_EXTENSIBLE with three or more channels,
-a mask whose bit count matches the channel count and anything beyond FL/FR/FC/LFE, on a device with fewer
-output channels, goes through AUSpatialMixer instead of straight into the device unit:
-- the mixer takes the stream as an ambience bed (kSpatialMixerSourceMode_AmbienceBed) with a channel
- layout built from the mask (back pair as rear surround when side speakers are present, as surround
- otherwise; top speakers as LeftTopFront and so on) and renders it with
- kSpatializationAlgorithm_UseOutputType;
-- the output type follows the device: built-in speakers, headphones on the built-in jack, Bluetooth and
- USB as headphones, anything else as external speakers; HB_SPATIAL=speakers|headphones|external
- overrides the guess and HB_SPATIAL=0 turns the path off;
-- on built-in speakers the mixer leaves LFE out, so it is added to the front pair at -6 dB;
-- the device unit gets the mixer's stereo output, and the stream's own bookkeeping (padding, latency,
- buffers) is unchanged.
-
-Tested with Forza Horizon 6 on engine r22, M5 Max built-in speakers: the log shows
- winecoreaudio: 12-channel stream (mask 0x2d63f) rendered by AUSpatialMixer for built-in speakers on a 2-channel device
- winecoreaudio: 8-channel stream (mask 0x63f) rendered by AUSpatialMixer for built-in speakers on a 2-channel device
-(the spatial audio bed and the game's XAudio2 mastering voice), dialogue and the engine play, and the mix
-sounds more detailed than the stereo fold. Built x86_64 from this tree and laid into the environment's
-.highball-dlss/wine as x86_64-windows/winecoreaudio.drv and x86_64-unix/winecoreaudio.so, with an
-x86_64-unix/ntdll.so link to the engine's (the .so finds ntdll.so through @loader_path).
-
-Still open, and not caused by this patch (it happened before it, and with FAudio 26.10 in xaudio2_9 too):
-in FH6 the engine sound sometimes stays silent after changing cars until the camera changes, the car
-brakes hard or crashes, or passes about 250 km/h.
-
-diff --git a/dlls/winecoreaudio.drv/coreaudio.c b/dlls/winecoreaudio.drv/coreaudio.c
-index 2d29999..2bca6c8 100644
---- a/dlls/winecoreaudio.drv/coreaudio.c
-+++ b/dlls/winecoreaudio.drv/coreaudio.c
-@@ -102,6 +102,13 @@ struct coreaudio_stream
- INT32 getbuf_last;
- WAVEFORMATEX *fmt;
- BYTE *local_buffer, *cap_buffer, *wrap_buffer, *resamp_buffer, *tmp_buffer;
-+
-+ /* Multichannel output on a device with fewer channels: the stream goes through
-+ * AUSpatialMixer, which renders the bed for the Mac's speakers or for headphones. */
-+ AudioUnit spatial;
-+ float *spatial_buf;
-+ UInt32 spatial_frames;
-+ int spatial_lfe; /* channel index of LFE, folded into the front pair on speakers, or -1 */
- };
-
- static const REFERENCE_TIME def_period = 100000;
-@@ -721,6 +728,217 @@ static AudioDeviceID dev_id_from_device(const char *device)
- return id;
- }
-
-+#define SPATIAL_MAX_FRAMES 4096
-+
-+static AudioChannelLabel speaker_to_label(DWORD speaker, DWORD mask)
-+{
-+ BOOL side = (mask & (SPEAKER_SIDE_LEFT | SPEAKER_SIDE_RIGHT)) != 0;
-+ switch(speaker){
-+ case SPEAKER_FRONT_LEFT: return kAudioChannelLabel_Left;
-+ case SPEAKER_FRONT_RIGHT: return kAudioChannelLabel_Right;
-+ case SPEAKER_FRONT_CENTER: return kAudioChannelLabel_Center;
-+ case SPEAKER_LOW_FREQUENCY: return kAudioChannelLabel_LFEScreen;
-+ case SPEAKER_BACK_LEFT: return side ? kAudioChannelLabel_RearSurroundLeft : kAudioChannelLabel_LeftSurround;
-+ case SPEAKER_BACK_RIGHT: return side ? kAudioChannelLabel_RearSurroundRight : kAudioChannelLabel_RightSurround;
-+ case SPEAKER_FRONT_LEFT_OF_CENTER: return kAudioChannelLabel_LeftCenter;
-+ case SPEAKER_FRONT_RIGHT_OF_CENTER: return kAudioChannelLabel_RightCenter;
-+ case SPEAKER_BACK_CENTER: return kAudioChannelLabel_CenterSurround;
-+ case SPEAKER_SIDE_LEFT: return kAudioChannelLabel_LeftSurround;
-+ case SPEAKER_SIDE_RIGHT: return kAudioChannelLabel_RightSurround;
-+ case SPEAKER_TOP_CENTER: return kAudioChannelLabel_TopCenterSurround;
-+ case SPEAKER_TOP_FRONT_LEFT: return kAudioChannelLabel_LeftTopFront;
-+ case SPEAKER_TOP_FRONT_CENTER: return kAudioChannelLabel_CenterTopFront;
-+ case SPEAKER_TOP_FRONT_RIGHT: return kAudioChannelLabel_RightTopFront;
-+ case SPEAKER_TOP_BACK_LEFT: return kAudioChannelLabel_LeftTopRear;
-+ case SPEAKER_TOP_BACK_CENTER: return kAudioChannelLabel_CenterTopRear;
-+ case SPEAKER_TOP_BACK_RIGHT: return kAudioChannelLabel_RightTopRear;
-+ }
-+ return kAudioChannelLabel_Unused;
-+}
-+
-+static UInt32 device_output_channels(AudioDeviceID dev)
-+{
-+ AudioObjectPropertyAddress addr = { kAudioDevicePropertyStreamConfiguration, kAudioObjectPropertyScopeOutput,
-+ kAudioObjectPropertyElementMain };
-+ AudioBufferList *buffers;
-+ UInt32 size = 0, i, channels = 0;
-+
-+ if(AudioObjectGetPropertyDataSize(dev, &addr, 0, NULL, &size) != noErr || !(buffers = malloc(size)))
-+ return 0;
-+ if(AudioObjectGetPropertyData(dev, &addr, 0, NULL, &size, buffers) == noErr)
-+ for(i = 0; i < buffers->mNumberBuffers; i++)
-+ channels += buffers->mBuffers[i].mNumberChannels;
-+ free(buffers);
-+ return channels;
-+}
-+
-+/* Speakers in the Mac itself, headphones (built-in jack, Bluetooth, USB headsets), or anything
-+ * else as external speakers. HB_SPATIAL=speakers|headphones|external overrides the guess. */
-+static UInt32 spatial_output_type(AudioDeviceID dev)
-+{
-+ AudioObjectPropertyAddress addr = { kAudioDevicePropertyTransportType, kAudioObjectPropertyScopeGlobal,
-+ kAudioObjectPropertyElementMain };
-+ const char *env = getenv("HB_SPATIAL");
-+ UInt32 transport = 0, source = 0, size = sizeof(transport);
-+
-+ if(env && !strcmp(env, "speakers")) return kSpatialMixerOutputType_BuiltInSpeakers;
-+ if(env && !strcmp(env, "headphones")) return kSpatialMixerOutputType_Headphones;
-+ if(env && !strcmp(env, "external")) return kSpatialMixerOutputType_ExternalSpeakers;
-+
-+ AudioObjectGetPropertyData(dev, &addr, 0, NULL, &size, &transport);
-+ switch(transport){
-+ case kAudioDeviceTransportTypeBuiltIn:
-+ addr.mSelector = kAudioDevicePropertyDataSource;
-+ addr.mScope = kAudioObjectPropertyScopeOutput;
-+ size = sizeof(source);
-+ if(AudioObjectGetPropertyData(dev, &addr, 0, NULL, &size, &source) == noErr && source == 'hdpn')
-+ return kSpatialMixerOutputType_Headphones;
-+ return kSpatialMixerOutputType_BuiltInSpeakers;
-+ case kAudioDeviceTransportTypeBluetooth:
-+ case kAudioDeviceTransportTypeBluetoothLE:
-+ case kAudioDeviceTransportTypeUSB:
-+ return kSpatialMixerOutputType_Headphones;
-+ default:
-+ return kSpatialMixerOutputType_ExternalSpeakers;
-+ }
-+}
-+
-+static OSStatus spatial_source_cb(void *user, AudioUnitRenderActionFlags *flags,
-+ const AudioTimeStamp *ts, UInt32 bus, UInt32 nframes, AudioBufferList *data)
-+{
-+ struct coreaudio_stream *stream = user;
-+ UInt32 nch = stream->fmt->nChannels, i, c;
-+ AudioBufferList interleaved;
-+ float *src = stream->spatial_buf;
-+
-+ if(nframes > stream->spatial_frames) nframes = stream->spatial_frames;
-+ interleaved.mNumberBuffers = 1;
-+ interleaved.mBuffers[0].mNumberChannels = nch;
-+ interleaved.mBuffers[0].mDataByteSize = nframes * stream->fmt->nBlockAlign;
-+ interleaved.mBuffers[0].mData = src;
-+ ca_render_cb(stream, flags, ts, 0, nframes, &interleaved);
-+
-+ for(c = 0; c < nch && c < data->mNumberBuffers; c++){
-+ float *dst = data->mBuffers[c].mData;
-+ for(i = 0; i < nframes; i++) dst[i] = src[i * nch + c];
-+ }
-+ if(stream->spatial_lfe >= 0 && data->mNumberBuffers >= 2){
-+ float *l = data->mBuffers[0].mData, *r = data->mBuffers[1].mData, *lfe = data->mBuffers[stream->spatial_lfe].mData;
-+ for(i = 0; i < nframes; i++){ l[i] += 0.5f * lfe[i]; r[i] += 0.5f * lfe[i]; lfe[i] = 0.0f; }
-+ }
-+ return noErr;
-+}
-+
-+static OSStatus spatial_pull_cb(void *user, AudioUnitRenderActionFlags *flags,
-+ const AudioTimeStamp *ts, UInt32 bus, UInt32 nframes, AudioBufferList *data)
-+{
-+ struct coreaudio_stream *stream = user;
-+ return AudioUnitRender(stream->spatial, flags, ts, 0, nframes, data);
-+}
-+
-+/* Puts AUSpatialMixer between the stream and the device when the stream is a float bed with more
-+ * channels than the device. Returns FALSE (and leaves the unit as it was) when it does not apply. */
-+static BOOL spatial_setup(struct coreaudio_stream *stream)
-+{
-+ const WAVEFORMATEXTENSIBLE *fmtex = (const WAVEFORMATEXTENSIBLE *)stream->fmt;
-+ AudioComponentDescription desc = { kAudioUnitType_Mixer, kAudioUnitSubType_SpatialMixer, kAudioUnitManufacturer_Apple };
-+ AudioStreamBasicDescription in, out;
-+ AudioChannelLayout *layout;
-+ AURenderCallbackStruct cb;
-+ UInt32 nch = stream->fmt->nChannels, one = 1, algo, mode, type, frames = SPATIAL_MAX_FRAMES, i, bit, dev_ch;
-+ DWORD mask;
-+ size_t layout_size;
-+ AudioComponent comp;
-+ const char *env = getenv("HB_SPATIAL");
-+ OSStatus sc;
-+
-+ if(env && !strcmp(env, "0")) return FALSE;
-+ if(stream->fmt->wFormatTag != WAVE_FORMAT_EXTENSIBLE || !IsEqualGUID(&fmtex->SubFormat, &KSDATAFORMAT_SUBTYPE_IEEE_FLOAT) ||
-+ stream->fmt->wBitsPerSample != 32 || nch < 3)
-+ return FALSE;
-+ mask = fmtex->dwChannelMask;
-+ if((UInt32)__builtin_popcount(mask) != nch || !(mask & ~(SPEAKER_FRONT_LEFT | SPEAKER_FRONT_RIGHT | SPEAKER_FRONT_CENTER | SPEAKER_LOW_FREQUENCY)))
-+ return FALSE;
-+ dev_ch = device_output_channels(stream->dev_id);
-+ if(!dev_ch || dev_ch >= nch) return FALSE;
-+ if(!(comp = AudioComponentFindNext(NULL, &desc)) || AudioComponentInstanceNew(comp, &stream->spatial) != noErr){
-+ stream->spatial = NULL;
-+ return FALSE;
-+ }
-+
-+ memset(&in, 0, sizeof(in));
-+ in.mSampleRate = stream->fmt->nSamplesPerSec;
-+ in.mFormatID = kAudioFormatLinearPCM;
-+ in.mFormatFlags = kAudioFormatFlagIsFloat | kAudioFormatFlagIsPacked | kAudioFormatFlagIsNonInterleaved;
-+ in.mBytesPerPacket = in.mBytesPerFrame = 4;
-+ in.mFramesPerPacket = 1;
-+ in.mChannelsPerFrame = nch;
-+ in.mBitsPerChannel = 32;
-+ out = in;
-+ out.mChannelsPerFrame = 2;
-+
-+ layout_size = offsetof(AudioChannelLayout, mChannelDescriptions) + nch * sizeof(AudioChannelDescription);
-+ layout = calloc(1, layout_size);
-+ layout->mChannelLayoutTag = kAudioChannelLayoutTag_UseChannelDescriptions;
-+ layout->mNumberChannelDescriptions = nch;
-+ stream->spatial_lfe = -1;
-+ for(i = 0, bit = 1; bit && i < nch; bit <<= 1){
-+ if(!(mask & bit)) continue;
-+ if(bit == SPEAKER_LOW_FREQUENCY) stream->spatial_lfe = i;
-+ layout->mChannelDescriptions[i++].mChannelLabel = speaker_to_label(bit, mask);
-+ }
-+
-+ type = spatial_output_type(stream->dev_id);
-+ algo = kSpatializationAlgorithm_UseOutputType;
-+ mode = kSpatialMixerSourceMode_AmbienceBed;
-+ if(type != kSpatialMixerOutputType_BuiltInSpeakers) stream->spatial_lfe = -1;
-+
-+ if((sc = AudioUnitSetProperty(stream->spatial, kAudioUnitProperty_ElementCount, kAudioUnitScope_Input, 0, &one, sizeof(one))) ||
-+ (sc = AudioUnitSetProperty(stream->spatial, kAudioUnitProperty_MaximumFramesPerSlice, kAudioUnitScope_Global, 0, &frames, sizeof(frames))) ||
-+ (sc = AudioUnitSetProperty(stream->spatial, kAudioUnitProperty_StreamFormat, kAudioUnitScope_Input, 0, &in, sizeof(in))) ||
-+ (sc = AudioUnitSetProperty(stream->spatial, kAudioUnitProperty_AudioChannelLayout, kAudioUnitScope_Input, 0, layout, layout_size)) ||
-+ (sc = AudioUnitSetProperty(stream->spatial, kAudioUnitProperty_StreamFormat, kAudioUnitScope_Output, 0, &out, sizeof(out))) ||
-+ (sc = AudioUnitSetProperty(stream->spatial, kAudioUnitProperty_SpatializationAlgorithm, kAudioUnitScope_Input, 0, &algo, sizeof(algo))) ||
-+ (sc = AudioUnitSetProperty(stream->spatial, kAudioUnitProperty_SpatialMixerSourceMode, kAudioUnitScope_Input, 0, &mode, sizeof(mode))) ||
-+ (sc = AudioUnitSetProperty(stream->spatial, kAudioUnitProperty_SpatialMixerOutputType, kAudioUnitScope_Global, 0, &type, sizeof(type)))){
-+ WARN("spatial mixer setup failed: %d\n", (int)sc);
-+ goto fail;
-+ }
-+ free(layout);
-+ layout = NULL;
-+
-+ cb.inputProc = spatial_source_cb;
-+ cb.inputProcRefCon = stream;
-+ if((sc = AudioUnitSetProperty(stream->spatial, kAudioUnitProperty_SetRenderCallback, kAudioUnitScope_Input, 0, &cb, sizeof(cb))) ||
-+ (sc = AudioUnitInitialize(stream->spatial))){
-+ WARN("spatial mixer start failed: %d\n", (int)sc);
-+ goto fail;
-+ }
-+
-+ if((sc = AudioUnitSetProperty(stream->unit, kAudioUnitProperty_StreamFormat, kAudioUnitScope_Input, 0, &out, sizeof(out)))){
-+ WARN("couldn't give the device a stereo stream: %d\n", (int)sc);
-+ goto fail;
-+ }
-+
-+ stream->spatial_frames = SPATIAL_MAX_FRAMES;
-+ stream->spatial_buf = malloc(SPATIAL_MAX_FRAMES * stream->fmt->nBlockAlign);
-+ if(!stream->spatial_buf) goto fail;
-+
-+ MESSAGE("winecoreaudio: %u-channel stream (mask %#x) rendered by AUSpatialMixer for %s on a %u-channel device\n",
-+ (unsigned)nch, (unsigned)mask,
-+ type == kSpatialMixerOutputType_BuiltInSpeakers ? "built-in speakers" :
-+ type == kSpatialMixerOutputType_Headphones ? "headphones" : "external speakers", (unsigned)dev_ch);
-+ return TRUE;
-+
-+fail:
-+ free(layout);
-+ AudioComponentInstanceDispose(stream->spatial);
-+ stream->spatial = NULL;
-+ /* put the device unit back on the stream's own format */
-+ AudioUnitSetProperty(stream->unit, kAudioUnitProperty_StreamFormat, kAudioUnitScope_Input, 0, &stream->dev_desc, sizeof(stream->dev_desc));
-+ return FALSE;
-+}
-+
- static NTSTATUS unix_create_stream(void *args)
- {
- struct create_stream_params *params = args;
-@@ -767,7 +985,7 @@ static NTSTATUS unix_create_stream(void *args)
- sc = AudioUnitSetProperty(stream->unit, kAudioOutputUnitProperty_SetInputCallback,
- kAudioUnitScope_Output, 1, &input, sizeof(input));
- }else{
-- input.inputProc = ca_render_cb;
-+ input.inputProc = spatial_setup(stream) ? spatial_pull_cb : ca_render_cb;
- sc = AudioUnitSetProperty(stream->unit, kAudioUnitProperty_SetRenderCallback,
- kAudioUnitScope_Input, 0, &input, sizeof(input));
- }
-@@ -853,6 +1071,8 @@ end:
- if(FAILED(params->result)){
- if(stream->converter) AudioConverterDispose(stream->converter);
- if(stream->unit) AudioComponentInstanceDispose(stream->unit);
-+ if(stream->spatial) AudioComponentInstanceDispose(stream->spatial);
-+ free(stream->spatial_buf);
- free(stream->fmt);
- free(stream);
- } else {
-@@ -879,6 +1099,10 @@ static NTSTATUS unix_release_stream( void *args )
- AudioOutputUnitStop(stream->unit);
- AudioComponentInstanceDispose(stream->unit);
- }
-+ if(stream->spatial){
-+ AudioComponentInstanceDispose(stream->spatial);
-+ free(stream->spatial_buf);
-+ }
-
- if(stream->converter) AudioConverterDispose(stream->converter);
- free(stream->resamp_buffer);
diff --git a/patches/highball/0026-ntdll-timezone-names-for-utc3-zones.patch b/patches/highball/0026-ntdll-timezone-names-for-utc3-zones.patch
deleted file mode 100644
index 8681badb40c..00000000000
--- a/patches/highball/0026-ntdll-timezone-names-for-utc3-zones.patch
+++ /dev/null
@@ -1,63 +0,0 @@
-A Mac set to Europe/Istanbul names its Windows time zone Turkey Standard Time,
-not Arab Standard Time.
-
-Wine picks the registry time zone whose rules match the host for the current
-year, taking the first match in the registry's order. Nine zones are UTC+3
-without daylight saving time today, and Arab Standard Time (Riyadh) comes
-first, so Turkey, Russia, Jordan, Syria, Kenya and Belarus all reported
-Riyadh. Rockstar's sign in refuses a client whose time zone disagrees with
-where it connects from: the Rockstar Games Launcher answered #1.000.7 (and
-#1.500.7 for a new account) to two players in Turkey whose accounts signed in
-from a Mac browser (highball#477, highball#478). Deleting the seven UTC+3
-zones listed before Turkey Standard Time from the prefix made Wine report
-Turkey Standard Time, and the launcher then signed in (confirmed by the
-reporter of highball#477, M1 Max, macOS 27.0.1, engine
-x64-crossover26.3-r27).
-
-CrossOver's tree already tells some same-rule zones apart in match_tz_name:
-by the host's zone abbreviation and, where those agree, by the host's offset
-at a past date (Korea and North Korea, Tokyo and Yakutsk). The UTC+3 zones go
-in the same table. Turkey was UTC+2 until September 2016, Jordan and Syria
-until October 2022, Riyadh, Baghdad and Minsk were UTC+3 at both dates, and
-Moscow (MSK) and Nairobi (EAT) have abbreviations of their own.
-
-Checked 2026-10-24 on macOS 27 with a C program that copies match_tz_name and
-match_past_tz_bias over the nine zones in registry order: Europe/Istanbul gets
-Turkey Standard Time; Asia/Riyadh, Asia/Qatar, Asia/Baghdad and Europe/Minsk
-keep Arab Standard Time as before; Africa/Nairobi and Africa/Addis_Ababa get
-E. Africa Standard Time; Asia/Amman and Asia/Damascus get Jordan Standard
-Time; Europe/Moscow, Europe/Volgograd and Europe/Simferopol get Russian
-Standard Time. Upstream Wine has no such table; not sent.
-
-diff -ruN a/dlls/ntdll/unix/system.c b/dlls/ntdll/unix/system.c
---- a/dlls/ntdll/unix/system.c 2026-10-24 19:18:22
-+++ b/dlls/ntdll/unix/system.c 2026-10-24 19:18:22
-@@ -2756,6 +2756,28 @@
- "JST" },
- { {'Y','a','k','u','t','s','k',' ','S','t','a','n','d','a','r','d',' ','T','i','m','e',0 },
- "+09" }, /* YAKST was used until tzdata 2016f */
-+ /* The UTC+3 zones without daylight saving time all match the same rules for the current
-+ * year, and the first one in the registry won, so a Mac set to Europe/Istanbul named its
-+ * zone Arab Standard Time (Riyadh). Each now also needs its abbreviation and, where those
-+ * agree, its offset at a past date: Turkey was UTC+2 until September 2016, Jordan and
-+ * Syria until October 2022, Riyadh, Baghdad and Minsk were UTC+3 at both dates, and
-+ * Moscow and Nairobi have abbreviations of their own. */
-+ { { 'A','r','a','b',' ','S','t','a','n','d','a','r','d',' ','T','i','m','e',0 },
-+ "+03", 1451606400 /* 2016-01-01 00:00:00 UTC */, -180 },
-+ { { 'A','r','a','b','i','c',' ','S','t','a','n','d','a','r','d',' ','T','i','m','e',0 },
-+ "+03", 1451606400 /* 2016-01-01 00:00:00 UTC */, -180 },
-+ { { 'B','e','l','a','r','u','s',' ','S','t','a','n','d','a','r','d',' ','T','i','m','e',0 },
-+ "+03", 1451606400 /* 2016-01-01 00:00:00 UTC */, -180 },
-+ { { 'E','.',' ','A','f','r','i','c','a',' ','S','t','a','n','d','a','r','d',' ','T','i','m','e',0 },
-+ "EAT" },
-+ { { 'J','o','r','d','a','n',' ','S','t','a','n','d','a','r','d',' ','T','i','m','e',0 },
-+ "+03", 1577836800 /* 2020-01-01 00:00:00 UTC */, -120 },
-+ { { 'R','u','s','s','i','a','n',' ','S','t','a','n','d','a','r','d',' ','T','i','m','e',0 },
-+ "MSK" },
-+ { { 'S','y','r','i','a',' ','S','t','a','n','d','a','r','d',' ','T','i','m','e',0 },
-+ "+03", 1577836800 /* 2020-01-01 00:00:00 UTC */, -120 },
-+ { { 'T','u','r','k','e','y',' ','S','t','a','n','d','a','r','d',' ','T','i','m','e',0 },
-+ "+03", 1451606400 /* 2016-01-01 00:00:00 UTC */, -120 },
- };
- unsigned int i;
-
diff --git a/patches/highball/0028-ntdll-crash-on-faults-in-foreign-threads.patch b/patches/highball/0028-ntdll-crash-on-faults-in-foreign-threads.patch
deleted file mode 100644
index 8006dccf501..00000000000
--- a/patches/highball/0028-ntdll-crash-on-faults-in-foreign-threads.patch
+++ /dev/null
@@ -1,92 +0,0 @@
-A fault on a thread Wine didn't create ends the program instead of hanging it.
-
-Apple's libdispatch workers run Metal and D3DMetal code inside the game's
-process, on threads without a TEB. When such a thread faults, segv_handler
-(and trap_handler, fpe_handler) runs on it, and save_context reads the TEB's
-copy of the debug registers first: it faults at 0x2f0 while SIGSEGV is still
-blocked, macOS retries that fault forever, and the faulting thread spins while
-the rest of the process carries on with no frame drawn. GravityMark 1.89
--direct3d12 on D3DMetal 4.0 beta 3 (macOS 27, M2 Max) hangs this way from about
-155,500 asteroids up: the first fault is a NULL read at 0x14 in
--[AGXG14XFamilyResidencySet _commitAddedAllocations:count:removedAllocations:count:]
-under D3DMetal's command replayer (Apple's bug, reported separately; #23).
-
-On macOS each handler now checks NtCurrentTeb() first. Without a TEB it puts
-the signal back to its default action and returns: the faulting load runs
-again and the process ends with SIGSEGV (a trap, which isn't retried, is raised
-again; SIGFPE likewise), so the crash report names the real fault. A fault Wine
-handles on a thread with a TEB takes the same path as before.
-
-Checked on an M2 Max with the r29 ntdll.so rebuilt with this patch:
-GravityMark -direct3d12 at 200,000 asteroids exits with SIGSEGV after 7 s
-instead of hanging; -direct3d11 scores the same as before (9,594 against
-9,653-9,731). Not sent upstream.
-
---- a/dlls/ntdll/unix/signal_x86_64.c
-+++ b/dlls/ntdll/unix/signal_x86_64.c
-@@ -2506,6 +2506,32 @@ static inline BOOL check_invalid_gsbase( ucontext_t *ucontext )
- }
-
-
-+#ifdef __APPLE__
-+/**********************************************************************
-+ * foreign_thread_fault
-+ *
-+ * A fault on a thread Wine didn't create, which has no TEB: Apple's libdispatch workers running
-+ * Metal and D3DMetal code are such threads. The handlers below read the TEB right away, fault
-+ * again and re-enter themselves forever, so the program hangs at 100% CPU instead of crashing.
-+ * Put the signal back to its default action instead: a fault happens again when the faulting
-+ * instruction is retried (a trap, which isn't retried, is raised again), and the process crashes
-+ * with a crash report that names the real fault.
-+ */
-+static BOOL foreign_thread_fault( int sig, BOOL retried )
-+{
-+ struct sigaction sa;
-+
-+ if (NtCurrentTeb()) return FALSE;
-+ memset( &sa, 0, sizeof(sa) );
-+ sa.sa_handler = SIG_DFL;
-+ sigemptyset( &sa.sa_mask );
-+ sigaction( sig, &sa, NULL );
-+ if (!retried) raise( sig ); /* blocked while this handler runs: delivered when it returns */
-+ return TRUE;
-+}
-+#endif
-+
-+
- /**********************************************************************
- * segv_handler
- *
-@@ -2517,6 +2543,10 @@ static void segv_handler( int signal, siginfo_t *siginfo, void *sigcontext )
- EXCEPTION_RECORD rec = { 0 };
- struct xcontext context;
-
-+#ifdef __APPLE__
-+ if (foreign_thread_fault( signal, TRUE )) return;
-+#endif
-+
- rec.ExceptionAddress = (void *)RIP_sig(ucontext);
- save_context( &context, ucontext );
-
-@@ -2613,6 +2643,10 @@ static void trap_handler( int signal, siginfo_t *siginfo, void *sigcontext )
- EXCEPTION_RECORD rec = { 0 };
- struct xcontext context;
-
-+#ifdef __APPLE__
-+ if (foreign_thread_fault( signal, FALSE )) return;
-+#endif
-+
- if (handle_syscall_trap( ucontext, siginfo )) return;
-
- rec.ExceptionAddress = (void *)RIP_sig(ucontext);
-@@ -2647,6 +2681,10 @@ static void fpe_handler( int signal, siginfo_t *siginfo, void *sigcontext )
- EXCEPTION_RECORD rec = { .ExceptionAddress = (void *)RIP_sig(ucontext) };
- struct xcontext context;
-
-+#ifdef __APPLE__
-+ if (foreign_thread_fault( signal, TRUE )) return;
-+#endif
-+
- save_context( &context, sigcontext );
-
- switch (siginfo->si_code)
diff --git a/patches/highball/0028b-soju-foreign-thread-page-faults.patch b/patches/highball/0028b-soju-foreign-thread-page-faults.patch
deleted file mode 100644
index ced85a07dc1..00000000000
--- a/patches/highball/0028b-soju-foreign-thread-page-faults.patch
+++ /dev/null
@@ -1,86 +0,0 @@
-Soju: on top of Highball 0028. Resolve page faults on threads Wine did not create the way
-virtual_handle_fault does for its own threads (Rosetta write-as-read faults, W^X-toggled pages,
-write watches) before 0028 ends the program. Without this, Diablo II: Resurrected hangs under
-D3DMetal with 0028 (D3DMetal threads hit those faults).
-
-
-diff -ruN a/dlls/ntdll/unix/signal_x86_64.c b/dlls/ntdll/unix/signal_x86_64.c
---- a/dlls/ntdll/unix/signal_x86_64.c 2026-11-10 19:13:40
-+++ b/dlls/ntdll/unix/signal_x86_64.c 2026-11-10 19:13:56
-@@ -2528,6 +2528,12 @@
- struct xcontext context;
-
- #ifdef __APPLE__
-+ /* Soju: Rosetta's misreported write faults, and the write and exec faults on pages Wine
-+ * keeps protected (write watches, W^X toggling), happen on D3DMetal's threads too and must be
-+ * resolved there as on Wine's own threads; only what is left ends the program. */
-+ if (!NtCurrentTeb() && TRAP_sig(ucontext) == TRAP_x86_PAGEFLT &&
-+ virtual_handle_foreign_fault( siginfo->si_addr, (ERROR_sig(ucontext) >> 1) & 0x09 ))
-+ return;
- if (foreign_thread_fault( signal, TRUE )) return;
- #endif
-
-diff -ruN a/dlls/ntdll/unix/unix_private.h b/dlls/ntdll/unix/unix_private.h
---- a/dlls/ntdll/unix/unix_private.h 2026-11-10 19:13:40
-+++ b/dlls/ntdll/unix/unix_private.h 2026-11-10 19:13:56
-@@ -299,6 +299,9 @@
- extern void virtual_map_user_shared_data(void);
- extern void virtual_init_user_shared_data(void);
- extern NTSTATUS virtual_handle_fault( EXCEPTION_RECORD *rec, void *stack );
-+#ifdef __APPLE__
-+extern BOOL virtual_handle_foreign_fault( void *addr, ULONG_PTR err );
-+#endif
- extern unsigned int virtual_locked_server_call( void *req_ptr );
- extern ssize_t virtual_locked_read( int fd, void *addr, size_t size );
- extern ssize_t virtual_locked_pread( int fd, void *addr, size_t size, off_t offset );
-diff -ruN a/dlls/ntdll/unix/virtual.c b/dlls/ntdll/unix/virtual.c
---- a/dlls/ntdll/unix/virtual.c 2026-11-10 19:13:40
-+++ b/dlls/ntdll/unix/virtual.c 2026-11-10 19:13:56
-@@ -4627,6 +4627,47 @@
- }
-
-
-+#ifdef __APPLE__
-+/***********************************************************************
-+ * virtual_handle_foreign_fault
-+ *
-+ * Soju: the part of virtual_handle_fault that needs no TEB, for a page fault on a thread Wine
-+ * did not create (Metal's and D3DMetal's libdispatch workers). Returns TRUE when the access can
-+ * be retried: Rosetta's write faults reported as reads, write and exec faults on W^X-toggled
-+ * pages (CW Hacks 24945, 25719) and writes to write-watched pages.
-+ */
-+BOOL virtual_handle_foreign_fault( void *addr, ULONG_PTR err )
-+{
-+ char *page = ROUND_ADDR( addr, host_page_mask );
-+ BOOL ret = FALSE;
-+ BYTE vprot;
-+
-+ mutex_lock( &virtual_mutex );
-+ vprot = get_host_page_vprot( page );
-+ if (err == EXCEPTION_READ_FAULT && (get_unix_prot( vprot ) & PROT_READ)) err = EXCEPTION_WRITE_FAULT;
-+ if ((err == EXCEPTION_WRITE_FAULT &&
-+ (get_unix_prot( vprot ) & (PROT_WRITE | PROT_EXEC)) == (PROT_WRITE | PROT_EXEC)) ||
-+ (err == EXCEPTION_EXECUTE_FAULT && (get_unix_prot( vprot ) & PROT_EXEC)))
-+ {
-+ mprotect_range( page, page_size, 0, VPROT_EXEC );
-+ mprotect_range( page, page_size, VPROT_EXEC, 0 );
-+ ret = TRUE;
-+ }
-+ else if (err == EXCEPTION_WRITE_FAULT)
-+ {
-+ if (vprot & VPROT_WRITEWATCH)
-+ {
-+ set_page_vprot_bits( page, host_page_size, 0, VPROT_WRITEWATCH );
-+ mprotect_range( page, host_page_size, 0, 0 );
-+ }
-+ if (get_unix_prot( get_host_page_vprot( page )) & PROT_WRITE) ret = TRUE;
-+ }
-+ mutex_unlock( &virtual_mutex );
-+ return ret;
-+}
-+#endif
-+
-+
- /***********************************************************************
- * virtual_setup_exception
- */
diff --git a/patches/highball/README.md b/patches/highball/README.md
deleted file mode 100644
index 2ae7610ea72..00000000000
--- a/patches/highball/README.md
+++ /dev/null
@@ -1,33 +0,0 @@
-# Wine patches from Highball
-
-Taken unchanged from [Highball](https://github.com/gauthierpiarrette/highball-engine) (`patches/`, LGPL-2.1,
-commit 34bd3b09, 2026-11-04). `scripts/build-engine.sh` applies them in file order, after Soju's own patches.
-Highball's README there explains each one. The fourteen kept here:
-
-| Patch | What it fixes |
-| --- | --- |
-| 0005 | A job hand-off that signals an event twice loses one under msync |
-| 0010 | Unity and Unreal in-game videos stay blank |
-| 0014 | The wineserver grows until a long session stalls (msync) |
-| 0015 | Short audio dropouts at 48 kHz |
-| 0017, 0018 | Forza Horizon 6 crash at start, and programs that warn of low memory |
-| 0019 | Xbox games ask for a sign-in at every launch |
-| 0020 | Retina mode reports twice the screen size to games |
-| 0022, 0023 | Surround (5.1, 7.1) audio on Mac speakers and headphones |
-| 0024 | Games that wait for the VCLibs framework packages |
-| 0026 | Rockstar sign-in refused in UTC+3 time zones |
-| 0028 + 0028b | A fault on a Metal / D3DMetal thread hangs the game at full CPU; it now ends the program with a real crash report |
-| 0029 | concrt140 / msvcp90 concurrent_vector fixes from upstream Wine |
-
-`0028b` is Soju's: 0028 alone made Diablo II: Resurrected hang, because D3DMetal's threads also hit the
-page faults Wine resolves on its own threads (Rosetta reporting writes as reads, pages Wine toggles between
-writable and executable, write watches). 0028b resolves those first, without a TEB, and lets 0028 end the
-program only for what is left.
-
-Not taken: 0001-0003 (Highball's own layout), 0006 (not needed), 0007 (Soju keeps it as
-`patches/winemac-cross-process-swapchains.patch`), 0011, 0012 and 0016 (do not apply to this tree or need Highball's x87 sidecar).
-Also left out after testing on this engine (M4 Pro, macOS 26.5, Diablo II: Resurrected under D3DMetal,
-2026-11-11), each added on top of patches that let the game start:
-- 0008 + 0009 (fiber pointer in %gs:0x20): the game hangs on a lock at start.
-- 0013, 0025, 0027 (each changes ntdll's Windows-side code: DEP policy, threadpool, `.local` lookup): the game dies
- at start (stack overflow or an exception it cannot dispatch), also with `WINE_DISABLE_NX_COMPAT=0` for 0013.
diff --git a/patches/winemac-cross-process-swapchains.patch b/patches/winemac-cross-process-swapchains.patch
deleted file mode 100644
index ddb44464c5d..00000000000
--- a/patches/winemac-cross-process-swapchains.patch
+++ /dev/null
@@ -1,1437 +0,0 @@
-Soju: taken from Highball (github.com/gauthierpiarrette/highball-engine, LGPL-2.1,
-patches/0007-winemac-cross-process-child-swapchains.patch), unchanged below this note.
-Used for the EA app, Rockstar Games Launcher and Ubisoft Connect engine (scripts/launcher-engine.sh).
-
-Highball: winemac.drv presents a Metal swapchain for a window whose root another process owns.
-
-Wine bug 60263. A CEF GPU process (Rockstar's SocialClubHelper, Steam's steamwebhelper, Ubisoft
-Connect) asks D3DMetal/DXMT for a swapchain on a child window whose root window belongs to the
-CEF browser process. The driver's win data is per process, so get_win_data() cannot see the
-root, the macdrv_functions shim handed DXMT no view, the swapchain failed and Chromium restarted
-the GPU process until it gave up: a black launcher window. Launch switches do not help.
-
-The rendering process now draws into a CAMetalLayer exported through a CAContext, and the
-process that owns the root window hosts that layer in its content view through a CALayerHost,
-positioned on the child's rect, clipped to it, stacked in Win32 paint order and kept in place
-as the child and the root move. This is upstream Wine's CAContext/CALayerHost route (11.11+,
-reached there only from vulkan.c) backported to this wine-11.0 base, plus the child window
-geometry, z-order, 0x0 and lifetime handling from the bug's reference patch, wired into the
-macdrv_functions shim that D3DMetal and DXMT use, so DXMT needs no change. Messages:
-WM_MACDRV_CREATE_REMOTE_LAYER / RELEASE / UPDATE, posted to the root window's owner. vulkan.c
-takes the same route through macdrv_client_surface_acquire_metal_swapchain().
-
-Applies on top of 0001-0003, 0005 and 0006 with 0004 (the overlay-window attempt at the same
-problem) dropped; none of those touch dlls/winemac.drv. Compile-checked with clang -fsyntax-only
-against the CrossOver 26.3 include tree and link-checked for the private CoreAnimation symbols;
-not yet run. Upstream status: bug open, reference implementation attached to the bug by its
-author, not submitted.
-
---- a/dlls/winemac.drv/macdrv.h
-+++ b/dlls/winemac.drv/macdrv.h
-@@ -100,6 +100,12 @@
- {
- WM_MACDRV_SET_WIN_REGION = WM_WINE_FIRST_DRIVER_MSG,
- WM_MACDRV_ACTIVATE_ON_FOLLOWING_FOCUS,
-+ /* Highball: cross-process Metal swapchains (Wine bug 60263). Posted to the window that owns
-+ * the NSWindow; wParam is the child hwnd the layer belongs to (0 for the window itself),
-+ * lParam the CAContext id. */
-+ WM_MACDRV_CREATE_REMOTE_LAYER,
-+ WM_MACDRV_RELEASE_REMOTE_LAYER,
-+ WM_MACDRV_UPDATE_REMOTE_LAYER,
- };
-
- struct macdrv_thread_data
-@@ -194,17 +200,21 @@
- unsigned int per_pixel_alpha : 1; /* is window using per-pixel alpha? */
- unsigned int minimized : 1; /* is window minimized? */
- unsigned int fullscreen : 1; /* is the window visible rect fullscreen? (unrelated to native AppKit/Cocoa fullscreen) */
-+ unsigned int remote_swapchain : 1; /* Highball: renders into a layer hosted by the root's owner (another process) */
-
- /* CW HACK 22435 */
- CFMutableArrayRef d3dmetal_client_surfaces;
-+
-+ /* Highball: CAContextID -> child HWND for the cross-process layers hosted on this window,
-+ * so they can be repositioned and restacked as the children move (Wine bug 60263). */
-+ CFMutableDictionaryRef remote_layer_children;
- };
-
- struct macdrv_client_surface
- {
- struct client_surface client;
- macdrv_view cocoa_view;
-- macdrv_metal_device metal_device;
-- macdrv_metal_view metal_view;
-+ macdrv_metal_swapchain metal_swapchain;
- };
-
- static inline struct macdrv_client_surface *impl_from_client_surface(struct client_surface *client)
-@@ -213,6 +223,9 @@
- }
-
- extern struct macdrv_client_surface *macdrv_client_surface_create(HWND hwnd);
-+extern BOOL macdrv_client_surface_acquire_metal_swapchain(struct macdrv_client_surface *surface,
-+ macdrv_metal_device device);
-+extern BOOL macdrv_window_has_foreign_root(HWND hwnd, HWND *root);
-
- extern struct macdrv_win_data *get_win_data(HWND hwnd);
- extern void release_win_data(struct macdrv_win_data *data);
---- a/dlls/winemac.drv/macdrv_cocoa.h
-+++ b/dlls/winemac.drv/macdrv_cocoa.h
-@@ -122,6 +122,7 @@
- typedef struct macdrv_opaque_metal_device* macdrv_metal_device;
- typedef struct macdrv_opaque_metal_view* macdrv_metal_view;
- typedef struct macdrv_opaque_metal_layer* macdrv_metal_layer;
-+typedef struct macdrv_opaque_metal_swapchain* macdrv_metal_swapchain;
- typedef struct macdrv_opaque_status_item* macdrv_status_item;
- struct macdrv_event;
- struct macdrv_query;
-@@ -559,6 +560,19 @@
- extern macdrv_metal_view macdrv_view_create_metal_view(macdrv_view v, macdrv_metal_device d);
- extern macdrv_metal_layer macdrv_view_get_metal_layer(macdrv_metal_view v);
- extern void macdrv_view_release_metal_view(macdrv_metal_view v);
-+/* Highball: Metal swapchains that can live in a window another process owns (Wine bug 60263) */
-+extern macdrv_metal_swapchain macdrv_create_view_swapchain(macdrv_view v, macdrv_metal_device device);
-+extern macdrv_metal_swapchain macdrv_create_offscreen_swapchain(void* hwnd, void* child, CGRect bounds,
-+ macdrv_metal_device device);
-+extern macdrv_metal_layer macdrv_swapchain_get_layer(macdrv_metal_swapchain swapchain);
-+extern void macdrv_destroy_swapchain(macdrv_metal_swapchain swapchain);
-+extern void macdrv_window_create_ca_layer_host_view(macdrv_window w, unsigned int context_id,
-+ CGRect frame, double zpos, int zpos_valid);
-+extern void macdrv_window_update_ca_layer_host_frame(macdrv_window w, unsigned int context_id,
-+ CGRect frame, double zpos, int zpos_valid);
-+extern void macdrv_window_release_ca_layer_host_view(macdrv_window w, unsigned int context_id);
-+extern void macdrv_create_remote_layer(void* hwnd, void* child, unsigned int context_id);
-+extern void macdrv_release_remote_layer(void* hwnd, unsigned int context_id);
- extern bool macdrv_get_view_backing_size(macdrv_view v, int backing_size[2]);
- extern void macdrv_set_view_backing_size(macdrv_view v, const int backing_size[2]);
- extern uint32_t macdrv_window_background_color(void);
---- a/dlls/winemac.drv/cocoa_window.m
-+++ b/dlls/winemac.drv/cocoa_window.m
-@@ -43,10 +43,31 @@
- * NSWindowStyleMaskNonactivatingPanel.
- * Available since at least macOS 10.6. */
- - (void)_setPreventsActivation:(BOOL)flag;
-+
-+@end
-+
-+/* Highball: private CoreAnimation API used to host a layer rendered by another process
-+ * (Wine bug 60263). Backported from upstream Wine 11.11+ (dlls/winemac.drv/cocoa_window.m). */
-+typedef uint32_t CGSConnectionID;
-+extern CGSConnectionID CGSMainConnectionID(void);
-+
-+typedef uint32_t CAContextID;
-+
-+@interface CAContext : NSObject
-+
-++ (id) contextWithCGSConnection:(CGSConnectionID)connection options:(NSDictionary*)options;
-+@property(readonly) CAContextID contextId;
-+@property(retain) CALayer* layer;
-
- @end
-
-+@interface CALayerHost : CALayer
-
-+- (void) setContextId:(CAContextID)contextId;
-+
-+@end
-+
-+
- static NSUInteger style_mask_for_features(const struct macdrv_window_features* wf)
- {
- NSUInteger style_mask;
-@@ -375,6 +396,7 @@
- int backingSize[2];
-
- WineMetalView *_metalView;
-+ NSMutableDictionary<NSNumber*, CALayerHost*>* _caLayerHosts; /* Highball: Wine bug 60263 */
-
- @public void *d3dmetal_client_surface; /* CW HACK 22435 */
- }
-@@ -389,6 +411,10 @@
- - (void) wine_setBackingSize:(const int*)newBackingSize;
-
- - (WineMetalView*) newMetalViewWithDevice:(id<MTLDevice>)device;
-+ - (void) addCALayerHostViewWithContextId:(CAContextID)contextId frame:(CGRect)frame;
-+ - (void) updateCALayerHostFrame:(CAContextID)contextId frame:(CGRect)frame;
-+ - (void) setCALayerHostZPosition:(CAContextID)contextId zPosition:(double)zpos;
-+ - (void) removeCALayerHostView:(CAContextID)contextId;
-
- @end
-
-@@ -477,6 +503,35 @@
- @end
-
-
-+/* Highball: Win32 speaks raw pixels and Cocoa points (two to one on Retina), so an odd pixel
-+ * dimension is a half point, and a hosted layer that Win32 says reaches the window edge stops one
-+ * device pixel short of it, showing the window beneath as a hairline. Snapped only at the edges so
-+ * an interior sibling keeps its exact geometry. */
-+static CGRect snap_host_frame_to_view_edges(CGRect frame, CGRect view)
-+{
-+ /* one device pixel in points; a fixed 1.0 would also close a gap the app asked for */
-+ const CGFloat px = retina_on ? 0.5 : 1.0;
-+
-+ if (CGRectIsNull(frame) || CGRectIsEmpty(frame) || CGRectIsEmpty(view)) return frame;
-+
-+ if (frame.origin.x > 0.0 && frame.origin.x <= px)
-+ {
-+ frame.size.width += frame.origin.x;
-+ frame.origin.x = 0.0;
-+ }
-+ if (frame.origin.y > 0.0 && frame.origin.y <= px)
-+ {
-+ frame.size.height += frame.origin.y;
-+ frame.origin.y = 0.0;
-+ }
-+ if (CGRectGetMaxX(frame) >= view.size.width - px)
-+ frame.size.width = view.size.width - frame.origin.x;
-+ if (CGRectGetMaxY(frame) >= view.size.height - px)
-+ frame.size.height = view.size.height - frame.origin.y;
-+ return frame;
-+}
-+
-+
- @implementation WineContentView
-
- @synthesize everHadGLContext = _everHadGLContext;
-@@ -499,6 +554,7 @@
- [markedText release];
- [glContexts release];
- [pendingGlContexts release];
-+ [_caLayerHosts release];
- CGImageRelease(colorImage);
- CGImageRelease(shapeImage);
- [super dealloc];
-@@ -702,6 +758,97 @@
- return _metalView;
- }
-
-+ /* Highball: host a layer another process renders into, keyed by its CAContext id
-+ * (Wine bug 60263). frame is in points, in this view's coordinate space; CGRectNull means
-+ * "no child rect supplied" and fills the view, which is the top-level window case. */
-+ - (void) addCALayerHostViewWithContextId:(CAContextID)contextId frame:(CGRect)frame
-+ {
-+ if (!_caLayerHosts)
-+ _caLayerHosts = [[NSMutableDictionary alloc] init];
-+
-+ [self removeCALayerHostView:contextId];
-+
-+ CALayerHost* host = [CALayerHost layer];
-+ [host setContextId:contextId];
-+ host.magnificationFilter = kCAFilterNearest;
-+ host.contentsScale = retina_on ? 2.0 : 1.0;
-+ frame = snap_host_frame_to_view_edges(frame, self.layer.bounds);
-+ /* A host given a real child rect is positioned and clipped to it, so siblings on one
-+ * window stop occluding one another. Three cases: CGRectIsEmpty cannot tell "no rect
-+ * supplied" from "really 0x0", and a 0x0 layer stretched over the content view with
-+ * nothing drawn in it blacks out everything below; a window with no area is hidden. */
-+ if (CGRectIsNull(frame))
-+ {
-+ host.frame = self.layer.bounds;
-+ host.autoresizingMask = kCALayerWidthSizable | kCALayerHeightSizable;
-+ }
-+ else if (CGRectIsEmpty(frame))
-+ {
-+ host.frame = CGRectZero;
-+ host.masksToBounds = YES;
-+ host.hidden = YES;
-+ }
-+ else
-+ {
-+ host.frame = frame;
-+ host.masksToBounds = YES;
-+ }
-+
-+ [self.layer addSublayer:host];
-+ [_caLayerHosts setObject:host forKey:@(contextId)];
-+
-+ [(WineWindow*)self.window windowDidDrawContent];
-+ }
-+
-+ - (void) updateCALayerHostFrame:(CAContextID)contextId frame:(CGRect)frame
-+ {
-+ CALayerHost* host = [_caLayerHosts objectForKey:@(contextId)];
-+
-+ if (!host || CGRectIsNull(frame)) return;
-+ frame = snap_host_frame_to_view_edges(frame, self.layer.bounds);
-+ [CATransaction begin];
-+ [CATransaction setDisableActions:YES];
-+ if (CGRectIsEmpty(frame))
-+ {
-+ /* Became 0x0 while hosted: left alone, the layer keeps its last size and still
-+ * covers live content. */
-+ host.hidden = YES;
-+ host.frame = CGRectZero;
-+ }
-+ else
-+ {
-+ /* The child it mirrors can move or resize in the other process. Visibility and
-+ * geometry are independent: a window that reports 0x0 and returns to its old size
-+ * must come back. */
-+ if (!CGRectEqualToRect(host.frame, frame)) host.frame = frame;
-+ if (host.hidden) host.hidden = NO;
-+ }
-+ [CATransaction commit];
-+ }
-+
-+ /* Stack the hosted layers the way the windows they mirror stack: insertion order is not that
-+ * order, since a client that recreates a swapchain on every resize puts the last-recreated
-+ * layer on top of live content. */
-+ - (void) setCALayerHostZPosition:(CAContextID)contextId zPosition:(double)zpos
-+ {
-+ CALayerHost* host = [_caLayerHosts objectForKey:@(contextId)];
-+
-+ if (host && host.zPosition != zpos)
-+ {
-+ [CATransaction begin];
-+ [CATransaction setDisableActions:YES];
-+ host.zPosition = zpos;
-+ [CATransaction commit];
-+ }
-+ }
-+
-+ - (void) removeCALayerHostView:(CAContextID)contextId
-+ {
-+ NSNumber* key = @(contextId);
-+ [[_caLayerHosts objectForKey:key] removeFromSuperlayer];
-+ [_caLayerHosts removeObjectForKey:key];
-+ }
-+
- - (void) setLayerRetinaProperties:(BOOL)mode
- {
- [self layer].contentsScale = mode ? 2.0 : 1.0;
-@@ -741,6 +888,9 @@
- [self updateGLContexts];
- [self setLayerRetinaProperties:mode];
-
-+ for (CALayerHost* host in [_caLayerHosts allValues])
-+ host.contentsScale = mode ? 2.0 : 1.0;
-+
- [super setRetinaMode:mode];
- }
-
-@@ -4064,9 +4214,249 @@
- OnMainThread(^{
- [view removeFromSuperview];
- [view release];
-+ });
-+}
-+
-+/* Highball: Metal swapchains (Wine bug 60263). Backported from upstream Wine 11.11+, with the
-+ * child-window geometry and z-order from the bug's reference patch. A MetalViewSwapChain is the
-+ * in-process case, a WineMetalView in one of our views. A CAContextSwapChain is the cross-process
-+ * case: the CAMetalLayer is exported through a CAContext and the process owning the target
-+ * window hosts it in its content view through a CALayerHost. */
-+
-+@protocol WineMetalSwapChain <NSObject>
-+
-+- (CAMetalLayer*) layer;
-+
-+@end
-+
-+@interface MetalViewSwapChain : NSObject <WineMetalSwapChain>
-+{
-+ macdrv_metal_device device;
-+ macdrv_metal_view metal_view;
-+}
-+
-+- (instancetype) initWithView:(macdrv_view)view device:(macdrv_metal_device)dev;
-+
-+@end
-+
-+@implementation MetalViewSwapChain
-+
-+- (instancetype) initWithView:(macdrv_view)view device:(macdrv_metal_device)dev
-+{
-+ self = [super init];
-+ if (!self) return nil;
-+
-+ /* The renderer's own device when it hands one over (D3DMetal, DXMT), the system default
-+ * otherwise (Vulkan). Either way one reference is ours to release. */
-+ if (dev)
-+ device = (macdrv_metal_device)[(id<MTLDevice>)dev retain];
-+ else if (!(device = macdrv_create_metal_device()))
-+ {
-+ [self release];
-+ return nil;
-+ }
-+ if (!(metal_view = macdrv_view_create_metal_view(view, device)))
-+ {
-+ macdrv_release_metal_device(device);
-+ device = NULL;
-+ [self release];
-+ return nil;
-+ }
-+ return self;
-+}
-+
-+- (CAMetalLayer*) layer
-+{
-+ return (CAMetalLayer*)macdrv_view_get_metal_layer(metal_view);
-+}
-+
-+- (void) dealloc
-+{
-+ if (metal_view) macdrv_view_release_metal_view(metal_view);
-+ if (device) macdrv_release_metal_device(device);
-+ [super dealloc];
-+}
-+
-+@end
-+
-+@interface CAContextSwapChain : NSObject <WineMetalSwapChain>
-+{
-+ void* hwnd; /* the window whose owner hosts the layer */
-+ void* child_hwnd; /* the cross-process child this layer belongs to (may be NULL) */
-+ macdrv_metal_device device;
-+ CAMetalLayer* offscreen_layer;
-+ CAContext* remote_context;
-+ CAContextID context_id;
-+}
-+
-+- (instancetype) initWithHwnd:(void*)hwnd child:(void*)child bounds:(CGRect)bounds
-+ device:(macdrv_metal_device)dev;
-+
-+@end
-+
-+@implementation CAContextSwapChain
-+
-+- (instancetype) initWithHwnd:(void*)newHwnd child:(void*)newChild bounds:(CGRect)bounds
-+ device:(macdrv_metal_device)dev
-+{
-+ self = [super init];
-+ if (!self) return nil;
-+
-+ hwnd = newHwnd;
-+ child_hwnd = newChild;
-+ if (dev)
-+ device = (macdrv_metal_device)[(id<MTLDevice>)dev retain];
-+ else if (!(device = macdrv_create_metal_device()))
-+ {
-+ [self release];
-+ return nil;
-+ }
-+
-+ offscreen_layer = [[CAMetalLayer alloc] init];
-+ if (!offscreen_layer)
-+ {
-+ macdrv_release_metal_device(device);
-+ device = NULL;
-+ [self release];
-+ return nil;
-+ }
-+
-+ offscreen_layer.device = (id<MTLDevice>)device;
-+ offscreen_layer.framebufferOnly = YES;
-+ offscreen_layer.magnificationFilter = kCAFilterNearest;
-+ offscreen_layer.backgroundColor = CGColorGetConstantColor(kCGColorBlack);
-+ offscreen_layer.contentsScale = retina_on ? 2.0 : 1.0;
-+ [offscreen_layer setBounds:cgrect_mac_from_win(bounds)];
-+ [offscreen_layer setAnchorPoint:CGPointMake(0, 0)];
-+
-+ /* Export the CAMetalLayer from the rendering process, then have the
-+ * target HWND's owner host it using CALayerHost. */
-+ OnMainThread(^{
-+ remote_context = [[CAContext contextWithCGSConnection:CGSMainConnectionID()
-+ options:[NSDictionary dictionary]] retain];
-+ [remote_context setLayer:offscreen_layer];
-+ context_id = [remote_context contextId];
- });
-+
-+ if (!remote_context || !context_id)
-+ {
-+ [self release];
-+ return nil;
-+ }
-+
-+ macdrv_create_remote_layer(hwnd, child_hwnd, context_id);
-+ return self;
- }
-
-+- (CAMetalLayer*) layer
-+{
-+ return offscreen_layer;
-+}
-+
-+- (void) dealloc
-+{
-+ if (context_id) macdrv_release_remote_layer(hwnd, context_id);
-+ CAContext *context = remote_context;
-+ CAMetalLayer *layer = offscreen_layer;
-+ macdrv_metal_device dev = device;
-+
-+ OnMainThreadAsync(^{
-+ [context setLayer:nil];
-+ [context release];
-+ [layer release];
-+ if (dev) macdrv_release_metal_device(dev);
-+ });
-+
-+ [super dealloc];
-+}
-+
-+@end
-+
-+macdrv_metal_swapchain macdrv_create_view_swapchain(macdrv_view v, macdrv_metal_device device)
-+{
-+ return (macdrv_metal_swapchain)[[MetalViewSwapChain alloc] initWithView:v device:device];
-+}
-+
-+macdrv_metal_swapchain macdrv_create_offscreen_swapchain(void* hwnd, void* child, CGRect bounds,
-+ macdrv_metal_device device)
-+{
-+ return (macdrv_metal_swapchain)[[CAContextSwapChain alloc] initWithHwnd:hwnd child:child
-+ bounds:bounds device:device];
-+}
-+
-+macdrv_metal_layer macdrv_swapchain_get_layer(macdrv_metal_swapchain swapchain)
-+{
-+ return (macdrv_metal_layer)[(id<WineMetalSwapChain>)swapchain layer];
-+}
-+
-+void macdrv_destroy_swapchain(macdrv_metal_swapchain swapchain)
-+{
-+ [(id<WineMetalSwapChain>)swapchain release];
-+}
-+
-+/* The frame arrives in Win32 raw pixels relative to the content view and CALayer.frame is in
-+ * points: window.c works in Win32 space and the Cocoa side converts. A null frame (no child rect)
-+ * stays null and selects the whole-view case. */
-+void macdrv_window_create_ca_layer_host_view(macdrv_window w, unsigned int context_id,
-+ CGRect frame, double zpos, int zpos_valid)
-+{
-+@autoreleasepool
-+{
-+ WineWindow* window = (WineWindow*)w;
-+
-+ OnMainThread(^{
-+ NSView* content_view = [window contentView];
-+
-+ if ([content_view isKindOfClass:[WineContentView class]])
-+ {
-+ CGRect mac_frame = CGRectIsNull(frame) ? CGRectNull : cgrect_mac_from_win(frame);
-+
-+ [(WineContentView*)content_view addCALayerHostViewWithContextId:context_id
-+ frame:mac_frame];
-+ if (zpos_valid)
-+ [(WineContentView*)content_view setCALayerHostZPosition:context_id zPosition:zpos];
-+ }
-+ });
-+}
-+}
-+
-+void macdrv_window_update_ca_layer_host_frame(macdrv_window w, unsigned int context_id,
-+ CGRect frame, double zpos, int zpos_valid)
-+{
-+@autoreleasepool
-+{
-+ WineWindow* window = (WineWindow*)w;
-+
-+ OnMainThread(^{
-+ NSView* content_view = [window contentView];
-+
-+ if ([content_view isKindOfClass:[WineContentView class]])
-+ {
-+ CGRect mac_frame = CGRectIsNull(frame) ? CGRectNull : cgrect_mac_from_win(frame);
-+
-+ [(WineContentView*)content_view updateCALayerHostFrame:context_id frame:mac_frame];
-+ if (zpos_valid)
-+ [(WineContentView*)content_view setCALayerHostZPosition:context_id zPosition:zpos];
-+ }
-+ });
-+}
-+}
-+
-+void macdrv_window_release_ca_layer_host_view(macdrv_window w, unsigned int context_id)
-+{
-+@autoreleasepool
-+{
-+ WineWindow* window = (WineWindow*)w;
-+
-+ OnMainThread(^{
-+ NSView* content_view = [window contentView];
-+
-+ if ([content_view isKindOfClass:[WineContentView class]])
-+ [(WineContentView*)content_view removeCALayerHostView:context_id];
-+ });
-+}
-+}
-+
- bool macdrv_get_view_backing_size(macdrv_view v, int backing_size[2])
- {
- WineContentView* view = (WineContentView*)v;
---- a/dlls/winemac.drv/window.c
-+++ b/dlls/winemac.drv/window.c
-@@ -244,6 +244,31 @@
- void release_win_data(struct macdrv_win_data *data)
- {
- if (data) pthread_mutex_unlock(&win_data_mutex);
-+}
-+
-+
-+/***********************************************************************
-+ * macdrv_window_has_foreign_root
-+ *
-+ * Highball: TRUE when the root window of hwnd has no win data in this
-+ * process, which is when another process created it: win_datas is per
-+ * process, so get_win_data() cannot see a foreign window by construction.
-+ * That is how a CEF GPU process (Steam, Rockstar, Ubisoft Connect) asks for
-+ * a swapchain on a child of the browser process's window (Wine bug 60263).
-+ */
-+BOOL macdrv_window_has_foreign_root(HWND hwnd, HWND *root_ret)
-+{
-+ HWND root = NtUserGetAncestor(hwnd, GA_ROOT);
-+ struct macdrv_win_data *data;
-+
-+ if (root_ret) *root_ret = root;
-+ if (!root || root == NtUserGetDesktopWindow()) return FALSE;
-+ if ((data = get_win_data(root)))
-+ {
-+ release_win_data(data);
-+ return FALSE;
-+ }
-+ return TRUE;
- }
-
-
-@@ -1146,8 +1171,7 @@
-
- TRACE("%s\n", debugstr_client_surface(client));
-
-- if (surface->metal_view) macdrv_view_release_metal_view(surface->metal_view);
-- if (surface->metal_device) macdrv_release_metal_device(surface->metal_device);
-+ if (surface->metal_swapchain) macdrv_destroy_swapchain(surface->metal_swapchain);
- }
-
- static void macdrv_client_surface_detach(struct client_surface *client)
-@@ -1235,6 +1259,52 @@
- }
-
- return surface;
-+}
-+
-+/***********************************************************************
-+ * macdrv_client_surface_acquire_metal_swapchain
-+ *
-+ * Highball: the Metal layer a client surface renders into. In our own
-+ * windows that is a WineMetalView in the surface's view. When the root
-+ * window belongs to another process (Wine bug 60263) there is no window of
-+ * ours to put a view in, so the layer is exported through a CAContext and
-+ * the root's owner hosts it in its content view (WM_MACDRV_CREATE_REMOTE_LAYER).
-+ * device may be NULL, in which case the swapchain creates its own.
-+ */
-+BOOL macdrv_client_surface_acquire_metal_swapchain(struct macdrv_client_surface *surface,
-+ macdrv_metal_device device)
-+{
-+ HWND hwnd = surface->client.hwnd, root;
-+ struct macdrv_win_data *data;
-+ RECT rect;
-+
-+ if (surface->metal_swapchain) return TRUE;
-+
-+ if (!macdrv_window_has_foreign_root(hwnd, &root))
-+ {
-+ surface->metal_swapchain = macdrv_create_view_swapchain(surface->cocoa_view, device);
-+ return surface->metal_swapchain != NULL;
-+ }
-+
-+ /* The layer's bounds only need the child's size; the root's owner positions the hosted
-+ * layer from the child's window rect (see WM_MACDRV_CREATE_REMOTE_LAYER). */
-+ if (!NtUserGetClientRect(hwnd, &rect, NtUserGetWinMonitorDpi(hwnd, MDT_RAW_DPI))) return FALSE;
-+ OffsetRect(&rect, -rect.left, -rect.top);
-+
-+ TRACE("%s: root %p belongs to another process, hosting a remote layer there, bounds %s\n",
-+ debugstr_client_surface(&surface->client), root, wine_dbgstr_rect(&rect));
-+ surface->metal_swapchain = macdrv_create_offscreen_swapchain(root, root == hwnd ? NULL : hwnd,
-+ cgrect_from_rect(rect), device);
-+ if (!surface->metal_swapchain) return FALSE;
-+
-+ /* A child this process created has win data; its moves are relayed to the root's owner from
-+ * WindowPosChanged so the hosted layer follows. */
-+ if ((data = get_win_data(hwnd)))
-+ {
-+ data->remote_swapchain = 1;
-+ release_win_data(data);
-+ }
-+ return TRUE;
- }
-
- /**********************************************************************
-@@ -1336,6 +1406,8 @@
- /* CW HACK 22435 */
- if (data->d3dmetal_client_surfaces) CFRelease(data->d3dmetal_client_surfaces);
-
-+ if (data->remote_layer_children) CFRelease(data->remote_layer_children);
-+
- CFDictionaryRemoveValue(win_datas, hwnd);
- release_win_data(data);
- free(data);
-@@ -1591,10 +1663,314 @@
- /* The ULW flags are a superset of the LWA flags. */
- sync_window_opacity(data, alpha, TRUE, flags);
- release_win_data(data);
-+ }
-+}
-+
-+
-+/* Highball: hosting of layers rendered by another process (Wine bug 60263). The rendering
-+ * process exports a CAContext and posts WM_MACDRV_CREATE_REMOTE_LAYER to the window that owns
-+ * the NSWindow; this side hosts it, places it on the child's rect, stacks it in Win32 paint
-+ * order and keeps it there as the child moves. */
-+
-+/* Win32 paint order for the hosted children of one root; higher index = nearer the viewer.
-+ * Siblings are walked bottom to top (GW_HWNDNEXT runs top to bottom) and a window is recorded
-+ * before its own children, so a child sits above its parent and an upper sibling above the whole
-+ * subtree of a lower one. Built once per update, not once per layer: this runs during a drag. */
-+#define PAINT_ORDER_DEPTH 32
-+
-+struct paint_order
-+{
-+ HWND *hwnds; /* index 0 = furthest back; grown by doubling */
-+ int count, capacity;
-+ BOOL truncated; /* a bound was hit; z-order below is incomplete */
-+};
-+
-+static void paint_order_truncated(struct paint_order *po, const char *why, HWND at)
-+{
-+ static BOOL warned;
-+
-+ if (!warned)
-+ {
-+ FIXME("%s below %p, paint order incomplete, hosted layers past the cap keep their z\n",
-+ why, at);
-+ warned = TRUE;
-+ }
-+ po->truncated = TRUE;
-+}
-+
-+static BOOL paint_order_add(struct paint_order *po, HWND hwnd)
-+{
-+ if (po->count == po->capacity)
-+ {
-+ int capacity = po->capacity ? po->capacity * 2 : 32;
-+ HWND *hwnds = realloc(po->hwnds, capacity * sizeof(*hwnds));
-+
-+ if (!hwnds)
-+ {
-+ paint_order_truncated(po, "out of memory", hwnd);
-+ return FALSE;
-+ }
-+ po->hwnds = hwnds;
-+ po->capacity = capacity;
-+ }
-+ po->hwnds[po->count++] = hwnd;
-+ return TRUE;
-+}
-+
-+/* GW_CHILD gives the topmost child and GW_HWNDLAST the bottommost sibling, so GW_HWNDPREV from
-+ * there walks bottom to top. */
-+static void paint_order_walk(HWND parent, struct paint_order *po, int depth)
-+{
-+ HWND k;
-+
-+ if (depth >= PAINT_ORDER_DEPTH)
-+ {
-+ paint_order_truncated(po, "window tree too deep", parent);
-+ return;
-+ }
-+
-+ if (!(k = NtUserGetWindowRelative(parent, GW_CHILD))) return;
-+
-+ for (k = NtUserGetWindowRelative(k, GW_HWNDLAST); k;
-+ k = NtUserGetWindowRelative(k, GW_HWNDPREV))
-+ {
-+ if (!paint_order_add(po, k)) return;
-+ paint_order_walk(k, po, depth + 1);
-+ }
-+}
-+
-+static void build_paint_order(HWND root, struct paint_order *po)
-+{
-+ po->hwnds = NULL;
-+ po->count = po->capacity = 0;
-+ po->truncated = FALSE;
-+ if (root) paint_order_walk(root, po, 0);
-+}
-+
-+static void paint_order_free(struct paint_order *po)
-+{
-+ free(po->hwnds);
-+ po->hwnds = NULL;
-+ po->count = po->capacity = 0;
-+}
-+
-+/* TRUE + *zpos on success; on failure the caller must leave zPosition alone. Returning 0.0 for
-+ * "not found" would be indistinguishable from a legitimate bottom-most position. */
-+static BOOL paint_order_zpos(const struct paint_order *po, HWND child, double *zpos)
-+{
-+ int i;
-+
-+ for (i = 0; i < po->count; i++)
-+ if (po->hwnds[i] == child) { *zpos = (double)(i + 1); return TRUE; }
-+ return FALSE;
-+}
-+
-+/* The child's window rect in the root's content view space, in Win32 pixels: the child's rect
-+ * in the root's client coordinates, offset the way macdrv_client_surface_update() places a
-+ * same-process child's view. FALSE when the child is gone. A hidden child gets an empty rect,
-+ * which hides its layer. */
-+static BOOL get_remote_layer_frame(struct macdrv_win_data *data, HWND child, RECT *frame)
-+{
-+ UINT dpi = NtUserGetWinMonitorDpi(data->hwnd, MDT_RAW_DPI);
-+ RECT rect;
-+
-+ if (!NtUserGetWindowRect(child, &rect, dpi)) return FALSE;
-+ if (!(NtUserGetWindowLongW(child, GWL_STYLE) & WS_VISIBLE))
-+ SetRectEmpty(&rect);
-+ else
-+ {
-+ NtUserMapWindowPoints(0, data->hwnd, (POINT *)&rect, 2, dpi);
-+ OffsetRect(&rect, data->rects.client.left - data->rects.visible.left,
-+ data->rects.client.top - data->rects.visible.top);
-+ }
-+ *frame = rect;
-+ return TRUE;
-+}
-+
-+static CGRect cgrect_from_frame(const RECT *rect)
-+{
-+ return CGRectMake(rect->left, rect->top, rect->right - rect->left, rect->bottom - rect->top);
-+}
-+
-+/* Retire every other hosted layer mirroring the same child, called once the replacement is in
-+ * the layer tree. Retiring on the old swapchain's death instead leaves the child unhosted until
-+ * the replacement's own message arrives, and the window shows straight through for that long. */
-+static void retire_superseded_layers(struct macdrv_win_data *data, HWND child, unsigned int keep)
-+{
-+ CFIndex count, i;
-+ const void **keys, **vals;
-+
-+ if (!data->remote_layer_children || !child) return;
-+ if (!(count = CFDictionaryGetCount(data->remote_layer_children))) return;
-+
-+ keys = calloc(count, sizeof(*keys));
-+ vals = calloc(count, sizeof(*vals));
-+ if (!keys || !vals) { free(keys); free(vals); return; }
-+ CFDictionaryGetKeysAndValues(data->remote_layer_children, keys, vals);
-+
-+ for (i = 0; i < count; i++)
-+ {
-+ unsigned int ctx = (unsigned int)(UINT_PTR)keys[i];
-+
-+ if (ctx == keep || (HWND)vals[i] != child) continue;
-+ TRACE("retiring superseded layer ctx %u for child %p (replaced by %u)\n", ctx, child, keep);
-+ if (data->cocoa_window) macdrv_window_release_ca_layer_host_view(data->cocoa_window, ctx);
-+ CFDictionaryRemoveValue(data->remote_layer_children, (const void *)(UINT_PTR)ctx);
- }
-+ free(keys);
-+ free(vals);
- }
-
-+/* The context id of this root's hosted layer for this child, or 0. */
-+static unsigned int remote_layer_context_for(struct macdrv_win_data *data, HWND child)
-+{
-+ CFIndex count, i;
-+ const void **keys, **vals;
-+ unsigned int context_id = 0;
-
-+ if (!data->remote_layer_children || !child) return 0;
-+ if (!(count = CFDictionaryGetCount(data->remote_layer_children))) return 0;
-+
-+ keys = calloc(count, sizeof(*keys));
-+ vals = calloc(count, sizeof(*vals));
-+ if (keys && vals)
-+ {
-+ CFDictionaryGetKeysAndValues(data->remote_layer_children, keys, vals);
-+ for (i = 0; i < count && !context_id; i++)
-+ if ((HWND)vals[i] == child) context_id = (unsigned int)(UINT_PTR)keys[i];
-+ }
-+ free(keys);
-+ free(vals);
-+ return context_id;
-+}
-+
-+/* Reposition one hosted layer. A child's own move only moves that child; refreshing every layer
-+ * on the root for each child costs O(n) per child during a resize. The root's own
-+ * WindowPosChanged still does the full pass. */
-+static void update_remote_layer_frame_for(struct macdrv_win_data *data, HWND child,
-+ unsigned int context_id)
-+{
-+ struct paint_order order;
-+ RECT frame;
-+ double zpos = 0.0;
-+ BOOL have_z;
-+
-+ if (!data->cocoa_window || !child || !context_id) return;
-+ if (!get_remote_layer_frame(data, child, &frame)) return;
-+
-+ build_paint_order(data->hwnd, &order);
-+ have_z = paint_order_zpos(&order, child, &zpos);
-+ paint_order_free(&order);
-+
-+ TRACE("child %p context %u frame %s zpos %.0f%s\n", child, context_id,
-+ wine_dbgstr_rect(&frame), zpos, have_z ? "" : " (not in paint order)");
-+ macdrv_window_update_ca_layer_host_frame(data->cocoa_window, context_id,
-+ cgrect_from_frame(&frame), zpos, have_z);
-+}
-+
-+/* Re-place every cross-process layer hosted on this window: they mirror children another process
-+ * owns, so no WindowPosChanged of their own arrives here. */
-+static void update_remote_layer_frames(struct macdrv_win_data *data)
-+{
-+ CFIndex count, i;
-+ const void **keys, **vals;
-+ struct paint_order order;
-+
-+ if (!data->remote_layer_children || !data->cocoa_window) return;
-+ if (!(count = CFDictionaryGetCount(data->remote_layer_children))) return;
-+
-+ /* one walk for all of this window's hosted layers, not one per layer */
-+ build_paint_order(data->hwnd, &order);
-+
-+ keys = calloc(count, sizeof(*keys));
-+ vals = calloc(count, sizeof(*vals));
-+ if (!keys || !vals) { free(keys); free(vals); paint_order_free(&order); return; }
-+ CFDictionaryGetKeysAndValues(data->remote_layer_children, keys, vals);
-+
-+ for (i = 0; i < count; i++)
-+ {
-+ HWND child = (HWND)vals[i];
-+ unsigned int context_id = (unsigned int)(UINT_PTR)keys[i];
-+ double zpos = 0.0;
-+ BOOL have_z;
-+ RECT frame;
-+
-+ if (!child) continue; /* a top-level's own layer fills the content view and autoresizes */
-+ if (!get_remote_layer_frame(data, child, &frame))
-+ {
-+ /* the child is gone; left alone its layer would stay painted at its last frame */
-+ TRACE("child %p gone, releasing hosted layer %u\n", child, context_id);
-+ macdrv_window_release_ca_layer_host_view(data->cocoa_window, context_id);
-+ CFDictionaryRemoveValue(data->remote_layer_children, (const void *)(UINT_PTR)context_id);
-+ continue;
-+ }
-+ have_z = paint_order_zpos(&order, child, &zpos);
-+
-+ TRACE("child %p context %u frame %s zpos %.0f%s\n", child, context_id,
-+ wine_dbgstr_rect(&frame), zpos, have_z ? "" : " (not in paint order)");
-+ macdrv_window_update_ca_layer_host_frame(data->cocoa_window, context_id,
-+ cgrect_from_frame(&frame), zpos, have_z);
-+ }
-+ free(keys);
-+ free(vals);
-+ paint_order_free(&order);
-+}
-+
-+/* WM_MACDRV_CREATE_REMOTE_LAYER: host the layer another process rendered into context_id,
-+ * on the rect of child (0 for the window itself). */
-+static void create_remote_layer(struct macdrv_win_data *data, HWND child, unsigned int context_id)
-+{
-+ struct paint_order order;
-+ CGRect frame = CGRectNull;
-+ double zpos = 0.0;
-+ BOOL have_z;
-+ RECT rect;
-+
-+ if (!data->cocoa_window) return;
-+ if (child)
-+ {
-+ if (!get_remote_layer_frame(data, child, &rect))
-+ {
-+ /* the child went away between the post and this handler; with no rect the layer
-+ * would cover the whole content view with nothing ever drawn into it */
-+ TRACE("child %p gone before context %u could be hosted, not hosting\n", child, context_id);
-+ return;
-+ }
-+ frame = cgrect_from_frame(&rect);
-+ TRACE("child %p layer frame in root %p = %s\n", child, data->hwnd, wine_dbgstr_rect(&rect));
-+ }
-+
-+ build_paint_order(data->hwnd, &order);
-+ have_z = child && paint_order_zpos(&order, child, &zpos);
-+ paint_order_free(&order);
-+ macdrv_window_create_ca_layer_host_view(data->cocoa_window, context_id, frame, zpos, have_z);
-+
-+ /* Track every hosted layer: a child's so it can be repositioned, and a top-level's own
-+ * (child NULL) so the release handler can tell "never tracked" from "already retired". */
-+ if (!data->remote_layer_children)
-+ data->remote_layer_children = CFDictionaryCreateMutable(NULL, 0, NULL, NULL);
-+ if (data->remote_layer_children)
-+ {
-+ CFDictionarySetValue(data->remote_layer_children, (const void *)(UINT_PTR)context_id, child);
-+ /* the replacement is hosted now, only now do its predecessors go */
-+ if (child) retire_superseded_layers(data, child, context_id);
-+ }
-+}
-+
-+/* WM_MACDRV_RELEASE_REMOTE_LAYER: every hosted layer is tracked, so an untracked id is one
-+ * retire_superseded_layers() already took, and skipping it keeps the two paths from racing
-+ * over a reused id. */
-+static void release_remote_layer(struct macdrv_win_data *data, unsigned int context_id)
-+{
-+ if (data->remote_layer_children &&
-+ !CFDictionaryContainsKey(data->remote_layer_children, (const void *)(UINT_PTR)context_id))
-+ return;
-+ if (data->cocoa_window) macdrv_window_release_ca_layer_host_view(data->cocoa_window, context_id);
-+ if (data->remote_layer_children)
-+ CFDictionaryRemoveValue(data->remote_layer_children, (const void *)(UINT_PTR)context_id);
-+}
-+
-+
- /**********************************************************************
- * WindowMessage (MACDRV.@)
- */
-@@ -1617,6 +1993,30 @@
- activate_on_following_focus();
- TRACE("WM_MACDRV_ACTIVATE_ON_FOLLOWING_FOCUS time %u\n", activate_on_focus_time);
- return 0;
-+ case WM_MACDRV_CREATE_REMOTE_LAYER:
-+ if ((data = get_win_data(hwnd)))
-+ {
-+ TRACE("WM_MACDRV_CREATE_REMOTE_LAYER child %p context_id %u\n", (HWND)wp, (unsigned int)lp);
-+ create_remote_layer(data, (HWND)wp, (unsigned int)lp);
-+ release_win_data(data);
-+ }
-+ return 0;
-+ case WM_MACDRV_RELEASE_REMOTE_LAYER:
-+ if ((data = get_win_data(hwnd)))
-+ {
-+ TRACE("WM_MACDRV_RELEASE_REMOTE_LAYER context_id %u\n", (unsigned int)lp);
-+ release_remote_layer(data, (unsigned int)lp);
-+ release_win_data(data);
-+ }
-+ return 0;
-+ case WM_MACDRV_UPDATE_REMOTE_LAYER:
-+ if ((data = get_win_data(hwnd)))
-+ {
-+ TRACE("WM_MACDRV_UPDATE_REMOTE_LAYER child %p\n", (HWND)wp);
-+ update_remote_layer_frame_for(data, (HWND)wp, remote_layer_context_for(data, (HWND)wp));
-+ release_win_data(data);
-+ }
-+ return 0;
- }
-
- FIXME("unrecognized window msg %x hwnd %p wp %lx lp %lx\n", msg, hwnd, (unsigned long)wp, lp);
-@@ -1624,6 +2024,20 @@
- }
-
-
-+/* Called from the rendering process. hwnd is the window whose owner hosts the layer, child the
-+ * cross-process child it belongs to (NULL for the window itself). */
-+void macdrv_create_remote_layer(void* hwnd_ptr, void* child_ptr, unsigned int context_id)
-+{
-+ NtUserPostMessage((HWND)hwnd_ptr, WM_MACDRV_CREATE_REMOTE_LAYER, (WPARAM)child_ptr, context_id);
-+}
-+
-+
-+void macdrv_release_remote_layer(void* hwnd_ptr, unsigned int context_id)
-+{
-+ NtUserPostMessage((HWND)hwnd_ptr, WM_MACDRV_RELEASE_REMOTE_LAYER, 0, context_id);
-+}
-+
-+
- /***********************************************************************
- * WindowPosChanging (MACDRV.@)
- */
-@@ -1692,8 +2106,31 @@
- TRACE("win %p/%p new_rects %s style %08x flags %08x surface %p\n", hwnd, data->cocoa_window,
- debugstr_window_rects(new_rects), new_style, swp_flags, surface);
-
-- if (!data->cocoa_window) goto done;
-+ if (!data->cocoa_window)
-+ {
-+ /* Highball: a child with a layer hosted on its root's window (Wine bug 60263) has win
-+ * data but no Cocoa window, and its moves are only seen here, in its own thread. Either
-+ * the root is ours (a foreign process's child re-parented into our window, or a child of
-+ * another thread of ours) and the hosted layer is moved directly, or the root belongs to
-+ * another process and that process is told. swp_flags are the effective flags, so a
-+ * no-op call carries NOMOVE|NOSIZE|NOZORDER and costs nothing. */
-+ HWND root = NtUserGetAncestor(hwnd, GA_ROOT);
-+ BOOL moved = (~swp_flags & (SWP_NOMOVE | SWP_NOSIZE | SWP_NOZORDER)) ||
-+ (swp_flags & (SWP_SHOWWINDOW | SWP_HIDEWINDOW));
-+ BOOL remote = data->remote_swapchain;
-
-+ release_win_data(data);
-+ if (!moved || !root || root == hwnd) return;
-+ if ((data = get_win_data(root)))
-+ {
-+ update_remote_layer_frame_for(data, hwnd, remote_layer_context_for(data, hwnd));
-+ release_win_data(data);
-+ }
-+ else if (remote)
-+ NtUserPostMessage(root, WM_MACDRV_UPDATE_REMOTE_LAYER, (WPARAM)hwnd, 0);
-+ return;
-+ }
-+
- if (data->on_screen)
- {
- if ((swp_flags & SWP_HIDEWINDOW) && !(new_style & WS_VISIBLE))
-@@ -1724,6 +2161,10 @@
- show_window(data);
- }
- }
-+
-+ /* after the Cocoa frame is current, so hosted cross-process layers are placed against the
-+ * content view's new bounds rather than the ones it is about to leave */
-+ update_remote_layer_frames(data);
-
- if (fullscreen || fullscreen != data->fullscreen)
- {
-@@ -1732,7 +2173,6 @@
- data->fullscreen = fullscreen;
- }
-
--done:
- release_win_data(data);
- }
-
---- a/dlls/winemac.drv/vulkan.c
-+++ b/dlls/winemac.drv/vulkan.c
-@@ -52,8 +52,9 @@
- TRACE("%p %p %p %p\n", hwnd, instance, handle, client);
-
- if (!(surface = macdrv_client_surface_create(hwnd))) return VK_ERROR_OUT_OF_HOST_MEMORY;
-- if (!(surface->metal_device = macdrv_create_metal_device())) goto err;
-- if (!(surface->metal_view = macdrv_view_create_metal_view(surface->cocoa_view, surface->metal_device))) goto err;
-+ /* Highball: a swapchain in our own window, or a layer hosted by the window's owning process
-+ * when that is another process (Wine bug 60263) */
-+ if (!macdrv_client_surface_acquire_metal_swapchain(surface, NULL)) goto err;
-
- if (instance->p_vkCreateMetalSurfaceEXT)
- {
-@@ -61,7 +62,7 @@
- create_info_host.sType = VK_STRUCTURE_TYPE_METAL_SURFACE_CREATE_INFO_EXT;
- create_info_host.pNext = NULL;
- create_info_host.flags = 0; /* reserved */
-- create_info_host.pLayer = macdrv_view_get_metal_layer(surface->metal_view);
-+ create_info_host.pLayer = macdrv_swapchain_get_layer(surface->metal_swapchain);
-
- res = instance->p_vkCreateMetalSurfaceEXT(instance->host.instance, &create_info_host, NULL /* allocator */, handle);
- }
-@@ -71,7 +72,7 @@
- create_info_host.sType = VK_STRUCTURE_TYPE_MACOS_SURFACE_CREATE_INFO_MVK;
- create_info_host.pNext = NULL;
- create_info_host.flags = 0; /* reserved */
-- create_info_host.pView = macdrv_view_get_metal_layer(surface->metal_view);
-+ create_info_host.pView = macdrv_swapchain_get_layer(surface->metal_swapchain);
-
- res = instance->p_vkCreateMacOSSurfaceMVK(instance->host.instance, &create_info_host, NULL /* allocator */, handle);
- }
---- a/dlls/winemac.drv/d3dmetal.c
-+++ b/dlls/winemac.drv/d3dmetal.c
-@@ -26,6 +26,8 @@
-
- #include "config.h"
-
-+#include <pthread.h>
-+
- #include "ntstatus.h"
- #define WIN32_NO_STATUS
- #include "macdrv.h"
-@@ -92,6 +94,122 @@
- void OnMainThread(dispatch_block_t block);
- static void cf_client_surface_release(CFAllocatorRef allocator, const void *client_surface);
-
-+/* Highball: cross-process swapchains (Wine bug 60263). A window whose root belongs to another
-+ * process (a CEF GPU process presenting into the browser process's window: Steam, Rockstar,
-+ * Ubisoft Connect) has no Cocoa view of ours to draw into. Its client surface renders into a
-+ * CAContext-backed layer that the root's owner hosts, see
-+ * macdrv_client_surface_acquire_metal_swapchain(). D3DMetal/DXMT are none the wiser: the
-+ * surface's view is handed out as client_cocoa_view, doubles as the "metal view" handle, and the
-+ * layer behind it is the offscreen swapchain's. Surfaces are keyed by that view, not by HWND: the
-+ * same HWND is asked for a swapchain several times (CEF recreates it on every resize). */
-+static pthread_mutex_t remote_layer_mutex = PTHREAD_MUTEX_INITIALIZER;
-+static CFMutableDictionaryRef remote_layer_surfaces; /* view -> client_surface D3DMetal/DXMT still uses */
-+
-+/* One retired surface held per child HWND. CAContextSwapChain's dealloc un-hosts the layer, and
-+ * a client that resizes by destroying its swapchain and creating a new one would have nothing
-+ * hosted between the two; so a released surface is held until the child's next release, which
-+ * follows its successor's creation (the owner retires the old layer when the new one is hosted).
-+ * A destroyed child never releases again, so a release whose child is gone is not held, and
-+ * every release sweeps out dead slots. */
-+static CFMutableDictionaryRef pending_by_child; /* child HWND -> retired client_surface */
-+
-+static struct client_surface *remote_layer_surface_for_view(macdrv_view view)
-+{
-+ struct client_surface *client = NULL;
-+
-+ if (!view) return NULL;
-+ pthread_mutex_lock(&remote_layer_mutex);
-+ if (remote_layer_surfaces)
-+ client = (struct client_surface *)CFDictionaryGetValue(remote_layer_surfaces, view);
-+ pthread_mutex_unlock(&remote_layer_mutex);
-+ return client;
-+}
-+
-+static BOOL remote_layer_surface_add(struct macdrv_client_surface *surface)
-+{
-+ BOOL ret;
-+
-+ pthread_mutex_lock(&remote_layer_mutex);
-+ if (!remote_layer_surfaces)
-+ remote_layer_surfaces = CFDictionaryCreateMutable(NULL, 0, NULL, NULL);
-+ if ((ret = remote_layer_surfaces && surface->cocoa_view))
-+ CFDictionarySetValue(remote_layer_surfaces, surface->cocoa_view, &surface->client);
-+ pthread_mutex_unlock(&remote_layer_mutex);
-+ return ret;
-+}
-+
-+/* The surface behind a view, removed from the table; NULL when the view is not one of ours. */
-+static struct client_surface *remote_layer_surface_take(macdrv_view view)
-+{
-+ struct client_surface *client = NULL;
-+
-+ if (!view) return NULL;
-+ pthread_mutex_lock(&remote_layer_mutex);
-+ if (remote_layer_surfaces &&
-+ (client = (struct client_surface *)CFDictionaryGetValue(remote_layer_surfaces, view)))
-+ CFDictionaryRemoveValue(remote_layer_surfaces, view);
-+ pthread_mutex_unlock(&remote_layer_mutex);
-+ return client;
-+}
-+
-+/* Remove every held surface whose child window no longer exists, for release outside the lock.
-+ * Called with remote_layer_mutex held; at most max per call, the rest on the next release. */
-+static CFIndex collect_dead_pending(struct client_surface **out, CFIndex max)
-+{
-+ CFIndex count, i, n = 0;
-+ const void **keys, **vals;
-+
-+ if (!pending_by_child || !(count = CFDictionaryGetCount(pending_by_child))) return 0;
-+ keys = calloc(count, sizeof(*keys));
-+ vals = calloc(count, sizeof(*vals));
-+ if (!keys || !vals) { free(keys); free(vals); return 0; }
-+ CFDictionaryGetKeysAndValues(pending_by_child, keys, vals);
-+ for (i = 0; i < count && n < max; i++)
-+ {
-+ if (NtUserIsWindow((HWND)keys[i])) continue;
-+ out[n++] = (struct client_surface *)vals[i];
-+ CFDictionaryRemoveValue(pending_by_child, keys[i]);
-+ }
-+ free(keys);
-+ free(vals);
-+ return n;
-+}
-+
-+/* Retire the surface behind a view D3DMetal/DXMT is finished with; TRUE if the view was one of
-+ * ours, so the caller falls through to the ordinary metal view release when it was not. */
-+static BOOL release_remote_layer_view(macdrv_view view)
-+{
-+ struct client_surface *client, *drain = NULL;
-+ struct client_surface *dead[16];
-+ CFIndex ndead, i;
-+ HWND owner;
-+
-+ if (!(client = remote_layer_surface_take(view))) return FALSE;
-+
-+ owner = client->hwnd;
-+ pthread_mutex_lock(&remote_layer_mutex);
-+ if (!pending_by_child)
-+ pending_by_child = CFDictionaryCreateMutable(NULL, 0, NULL, NULL);
-+ if (!pending_by_child || !owner || !NtUserIsWindow(owner))
-+ {
-+ /* no table, or the child is already gone and no successor will ever come: release now */
-+ drain = client;
-+ }
-+ else
-+ {
-+ drain = (struct client_surface *)CFDictionaryGetValue(pending_by_child, owner);
-+ CFDictionarySetValue(pending_by_child, owner, client);
-+ }
-+ ndead = collect_dead_pending(dead, ARRAY_SIZE(dead));
-+ pthread_mutex_unlock(&remote_layer_mutex);
-+
-+ TRACE("view %p child %p: %s, draining %p and %ld dead-child slot(s)\n", view, owner,
-+ drain == client ? "child gone, released now" : "held", drain, (long)ndead);
-+ if (drain) client_surface_release(drain);
-+ for (i = 0; i < ndead; i++) client_surface_release(dead[i]);
-+ return TRUE;
-+}
-+
- static void my_macdrv_init_display_devices(BOOL p1)
- {
- TRACE("macdrv_init_display_devices %d - no-op\n", p1);
-@@ -102,6 +220,7 @@
- struct macdrv_win_data *data;
- struct d3dmetal_macdrv_win_data *d3dm_data;
- struct macdrv_client_surface *client_surface;
-+ BOOL remote;
- TRACE("get_win_data %p\n", hwnd);
-
- /* Creating a client surface on each call to get_win_data() means it's no longer idempotent,
-@@ -111,9 +230,14 @@
- */
- client_surface = macdrv_client_surface_create(hwnd);
-
-+ /* Highball: a window whose root another process owns gets a remote layer instead of a view
-+ * in a window of ours; the layer is created once the renderer hands over its Metal device,
-+ * in my_macdrv_view_create_metal_view(). */
-+ remote = macdrv_window_has_foreign_root(hwnd, NULL);
-+
- /* get_win_data() needs to happen after client_surface creation to avoid deadlocks */
- data = get_win_data(hwnd);
-- if (!data)
-+ if (!data && !remote)
- {
- client_surface_release((struct client_surface *)client_surface);
- return NULL;
-@@ -121,34 +245,81 @@
-
- macdrv_set_view_d3dmetal_client_surface(client_surface->cocoa_view, &client_surface->client);
-
-- if (!data->d3dmetal_client_surfaces)
-+ if (remote)
- {
-- static const CFArrayCallBacks callbacks = { .release = cf_client_surface_release };
-- data->d3dmetal_client_surfaces = CFArrayCreateMutable(NULL, 0, &callbacks);
-+ /* owned by the tables above, not by the window's data: the window may not have any */
-+ if (!remote_layer_surface_add(client_surface))
-+ {
-+ release_win_data(data);
-+ client_surface_release((struct client_surface *)client_surface);
-+ return NULL;
-+ }
-+ TRACE("hwnd %p: root belongs to another process, surface %p view %p\n", hwnd,
-+ client_surface, client_surface->cocoa_view);
- }
-- CFArrayAppendValue(data->d3dmetal_client_surfaces, client_surface);
-+ else
-+ {
-+ if (!data->d3dmetal_client_surfaces)
-+ {
-+ static const CFArrayCallBacks callbacks = { .release = cf_client_surface_release };
-+ data->d3dmetal_client_surfaces = CFArrayCreateMutable(NULL, 0, &callbacks);
-+ }
-+ CFArrayAppendValue(data->d3dmetal_client_surfaces, client_surface);
-+ }
-
- d3dm_data = calloc(1, sizeof(*d3dm_data));
-
-- d3dm_data->hwnd = data->hwnd;
-- d3dm_data->cocoa_window = data->cocoa_window;
-+ d3dm_data->hwnd = hwnd;
- /* cocoa_view is no longer present in macdrv_win_data. D3DMetal doesn't use it. */
- d3dm_data->client_cocoa_view = client_surface->cocoa_view;
-- d3dm_data->window_rect = data->rects.window;
-- d3dm_data->whole_rect = data->rects.visible;
-- d3dm_data->client_rect = data->rects.client;
-- d3dm_data->pixel_format = data->pixel_format;
-- /* color_key is no longer present in macdrv_win_data. Assume D3DMetal doesn't use it. */
-- d3dm_data->drag_event = data->drag_event;
-- d3dm_data->on_screen = data->on_screen;
-- d3dm_data->shaped = data->shaped;
-- d3dm_data->layered = data->layered;
-- d3dm_data->ulw_layered = data->ulw_layered;
-- d3dm_data->per_pixel_alpha = data->per_pixel_alpha;
-- d3dm_data->minimized = data->minimized;
-- /* swap_interval is no longer present in macdrv_win_data. Assume D3DMetal doesn't use it. */
-- /* surface/unminimized_surface are no longer present in macdrv_win_data. Assume D3DMetal doesn't use it. */
-- d3dm_data->padding[0] = data;
-+ if (data)
-+ {
-+ d3dm_data->cocoa_window = data->cocoa_window;
-+ d3dm_data->window_rect = data->rects.window;
-+ d3dm_data->whole_rect = data->rects.visible;
-+ d3dm_data->client_rect = data->rects.client;
-+ d3dm_data->pixel_format = data->pixel_format;
-+ /* color_key is no longer present in macdrv_win_data. Assume D3DMetal doesn't use it. */
-+ d3dm_data->drag_event = data->drag_event;
-+ d3dm_data->on_screen = data->on_screen;
-+ d3dm_data->shaped = data->shaped;
-+ d3dm_data->layered = data->layered;
-+ d3dm_data->ulw_layered = data->ulw_layered;
-+ d3dm_data->per_pixel_alpha = data->per_pixel_alpha;
-+ d3dm_data->minimized = data->minimized;
-+ /* swap_interval is no longer present in macdrv_win_data. Assume D3DMetal doesn't use it. */
-+ /* surface/unminimized_surface are no longer present in macdrv_win_data. Assume D3DMetal doesn't use it. */
-+ }
-+ else
-+ {
-+ /* Highball: a window this process never positioned, owned by another process. The rects
-+ * are the ones the driver would have recorded, relative to the parent's client area. */
-+ HWND parent = NtUserGetAncestor(hwnd, GA_PARENT);
-+ UINT dpi = NtUserGetWinMonitorDpi(hwnd, MDT_RAW_DPI);
-+ RECT window_rect, client_rect;
-+
-+ if (NtUserGetWindowRect(hwnd, &window_rect, dpi))
-+ {
-+ if (parent) NtUserMapWindowPoints(0, parent, (POINT *)&window_rect, 2, dpi);
-+ d3dm_data->window_rect = d3dm_data->whole_rect = window_rect;
-+ }
-+ if (NtUserGetClientRect(hwnd, &client_rect, dpi))
-+ {
-+ NtUserMapWindowPoints(hwnd, parent, (POINT *)&client_rect, 2, dpi);
-+ d3dm_data->client_rect = client_rect;
-+ }
-+ d3dm_data->on_screen = !!(NtUserGetWindowLongW(hwnd, GWL_STYLE) & WS_VISIBLE);
-+ }
-+
-+ if (remote)
-+ {
-+ /* Highball: nothing here needs the window's data locked while the renderer sets up, and
-+ * the swapchain creation below waits on the main thread. */
-+ release_win_data(data);
-+ d3dm_data->padding[0] = NULL;
-+ }
-+ else
-+ d3dm_data->padding[0] = data;
-
- return d3dm_data;
- }
-@@ -160,7 +331,7 @@
- if (!data)
- return;
-
-- release_win_data(data->padding[0]);
-+ if (data->padding[0]) release_win_data(data->padding[0]);
- free(data);
- }
-
-@@ -184,19 +355,47 @@
-
- static macdrv_metal_view my_macdrv_view_create_metal_view(macdrv_view v, macdrv_metal_device d)
- {
-+ struct client_surface *client;
-+
- TRACE("macdrv_view_create_metal_view %p %p\n", v, d);
-+
-+ /* Highball: a remote surface's view is a placeholder. The layer it hands out is the offscreen
-+ * swapchain's, created here with the renderer's device, and the view itself is the handle
-+ * the renderer gets back, so that get_metal_layer() and release_metal_view() find it. */
-+ if ((client = remote_layer_surface_for_view(v)))
-+ {
-+ struct macdrv_client_surface *surface = impl_from_client_surface(client);
-+
-+ if (!macdrv_client_surface_acquire_metal_swapchain(surface, d))
-+ {
-+ ERR("no remote swapchain for %s\n", debugstr_client_surface(client));
-+ if (remote_layer_surface_take(v)) client_surface_release(client);
-+ return NULL;
-+ }
-+ return (macdrv_metal_view)v;
-+ }
-+
- return macdrv_view_create_metal_view(v, d);
- }
-
- static macdrv_metal_layer my_macdrv_view_get_metal_layer(macdrv_metal_view v)
- {
-+ struct client_surface *client;
-+
- TRACE("macdrv_view_get_metal_layer %p\n", v);
-+
-+ if ((client = remote_layer_surface_for_view((macdrv_view)v)))
-+ return macdrv_swapchain_get_layer(impl_from_client_surface(client)->metal_swapchain);
-+
- return macdrv_view_get_metal_layer(v);
- }
-
- static void my_macdrv_view_release_metal_view(macdrv_metal_view v)
- {
- TRACE("macdrv_view_release_metal_view %p\n", v);
-+
-+ if (release_remote_layer_view((macdrv_view)v)) return;
-+
- return macdrv_view_release_metal_view(v);
- }
-
diff --git a/resources/launcher-support.json b/resources/launcher-support.json
index 403121df5d0..b79abf79f8f 100644
--- a/resources/launcher-support.json
+++ b/resources/launcher-support.json
@@ -1,22 +1,22 @@
{
- "version": "launcher-support-v2",
- "url": "https://github.com/BCD1210/soju/releases/download/launcher-support-v2/soju-launcher-support-v2.tar.gz",
- "sha256": "18cf24621a4b2fab07e93f9be18d438fbcdd599cce78c2fe61d06f84f1117db4",
+ "version": "launcher-support-v3",
+ "url": "https://github.com/BCD1210/soju/releases/download/launcher-support-v3/soju-launcher-support-v3.tar.gz",
+ "sha256": "3cc20e0861a3733e0b7f0d0cd47beadd0daeb855c54a5dee3419a6e9df7dbbd4",
"files": {
- "SOURCES.txt": "b143443281cbc7d67480a326a13c7075013c7f6b68ae7673fa2778b00a184e1b",
- "dxmt/i386-windows/d3d10core.dll": "aa21a497d86a8970f4e708fead276fd7ba945de9bdbec488538df537a885d3ef",
- "dxmt/i386-windows/d3d11.dll": "34d83f6ef62ac10087d8b5030e633a6d46743c70fc73afff1621249f437e07df",
- "dxmt/i386-windows/dxgi.dll": "c135d3b8f9becb54710342ce179281abbff4f1ce2edf934fab4a72bcfa2fdb1c",
- "dxmt/i386-windows/winemetal.dll": "2d9004f151f11e9f1250a46038a2fc3fd253e660372b79c28d3786f00429fa88",
- "dxmt/x86_64-unix/winemetal.so": "3d5cc9c4b8e5c9f5c12407d4726c5d93fc70535a43590a9c4799d7e00849fd5d",
- "dxmt/x86_64-windows/d3d10core.dll": "2a9890170a64e2a27bf4f3e37aefc14b719573a8c91f062410b0efb666615d79",
- "dxmt/x86_64-windows/d3d11.dll": "3d9452127d7cccf29f4dc80fac636e84aeccaa9a7936368b81292bf68c836b87",
- "dxmt/x86_64-windows/dxgi.dll": "6f391e1c1e742c4c74657524cb6d2abcbd461d260f2aae828720ad54cb74300d",
- "dxmt/x86_64-windows/winemetal.dll": "79b5fda6a25223729c5b6a41f3e9c2320550bd040fe1ed730a89f84426cc75e8",
+ "SOURCES.txt": "726ed7e76e17b774e5c7be87b229dee855e68b624f8ec172008fa05cfce31df3",
+ "dxmt/i386-windows/d3d10core.dll": "429a1255bd85bf26c926271b94a8d9b92d92bb9b5e9a94300ba8ea192b73a19f",
+ "dxmt/i386-windows/d3d11.dll": "cf336077cf324cc72050bb3755c4b7b3eddc357597aaef2af74dc458406fe514",
+ "dxmt/i386-windows/dxgi.dll": "782f52d52b0e5e053462f9ba66ccedebe101654ca90aa9f188b77ef7d28d0921",
+ "dxmt/i386-windows/winemetal.dll": "ab8d80c30967a8f08b37117a776a66e0483483ba1a455efdfa6fc6f8dc23436b",
+ "dxmt/x86_64-unix/winemetal.so": "5a7be27d041fe553b481266abdb4c83724a76bd2d0a33f5bbde11ca29d451ff0",
+ "dxmt/x86_64-windows/d3d10core.dll": "bc34f535d9e775afa62098175cd6313c9e9339c5b0b2d9a409155a7db138b2cb",
+ "dxmt/x86_64-windows/d3d11.dll": "3e77e84166deef9288dc841535a5d8040908a59e439a5d946467586465c91784",
+ "dxmt/x86_64-windows/dxgi.dll": "6eb5bf4f4858d9ef583b6e11eaa48f7bf57684b36a1d3555b581bf0fba4950a2",
+ "dxmt/x86_64-windows/winemetal.dll": "75e3f4de70ef86f203869aece3fc5f6b393ca271e19f586b99a1c071f7bf8a2f",
"licenses/DXMT.txt": "b87c35aef7b2cf14de854118ca55ce5c4b284c85b5f002421fb8d46d868c2d17",
"licenses/LLVM.txt": "8d85c1057d742e597985c7d4e6320b015a9139385cff4cbae06ffc0ebe89afee",
"licenses/Wine-LGPL.txt": "e237fa56668030e928551ddd60f05df5fe957f75eab874bbd017e085ed722e7c",
- "winemac.so": "69bb3f0b9508a31412a1215ed25e83821cfe0f4d9d05c27541d91fd69362b2ca"
+ "winemac.so": "f15dc63e5ecb4708c2dc5d1800bc7a908f3263710dc040230f30a486abd4b975"
},
- "notes": "Mac driver with the cross-process swapchain patch and DXMT for the EA app, Rockstar Games Launcher and Ubisoft Connect (scripts/launcher-engine.sh). Built by scripts/build-launcher-support.sh."
+ "notes": "Mac driver with Soju's remote child layers (patches/engine/0007-remote-child-layers.patch) and DXMT for the EA app, Rockstar Games Launcher and Ubisoft Connect (scripts/launcher-engine.sh). Built by scripts/build-launcher-support.sh."
}
diff --git a/scripts/build-engine.sh b/scripts/build-engine.sh
index 7526e1f2e07..23e3d2d49be 100755
--- a/scripts/build-engine.sh
+++ b/scripts/build-engine.sh
@@ -73,14 +73,11 @@ if ! grep -q "WINE_XATTR_SD" "$WINE/server/file.c"; then
echo "==> Applying patches/wineserver-stored-acls.patch (ACLs programs set read back as set)"
patch -p1 -d "$WINE" < "$SCRIPT_DIR/../patches/wineserver-stored-acls.patch"
fi
-if ! grep -q "WM_MACDRV_CREATE_REMOTE_LAYER" "$WINE/dlls/winemac.drv/macdrv.h"; then
- echo "==> Applying patches/winemac-cross-process-swapchains.patch (EA, Rockstar and Ubisoft browser windows)"
- patch -p1 -d "$WINE" < "$SCRIPT_DIR/../patches/winemac-cross-process-swapchains.patch"
-fi
-# Fixes from Highball (patches/highball/README.md). Each one is applied only if it is not in yet.
-for p in "$SCRIPT_DIR"/../patches/highball/*.patch; do
+# Soju's Wine fixes (patches/engine/00xx), backports from upstream Wine and Proton (patches/engine/01xx)
+# and the audio patch the Steam runtime uses too. Each one is applied only if it is not in yet.
+for p in "$SCRIPT_DIR"/../patches/steam-wine-audio.patch "$SCRIPT_DIR"/../patches/engine/*.patch; do
if ! patch -p1 -R -s -f --dry-run -d "$WINE" < "$p" >/dev/null 2>&1; then
- echo "==> Applying patches/highball/$(basename "$p")"
+ echo "==> Applying patches/${p#*/patches/}"
patch -p1 -s -d "$WINE" < "$p"
fi
done
diff --git a/scripts/build-launcher-support.sh b/scripts/build-launcher-support.sh
index 0c854e04380..f1a18f8cf5d 100755
--- a/scripts/build-launcher-support.sh
+++ b/scripts/build-launcher-support.sh
@@ -3,12 +3,13 @@
# the engine the EA app, the Rockstar Games Launcher and Ubisoft Connect run on
# (scripts/launcher-engine.sh). Nothing installed is touched.
#
-# winemac.so the engine's Mac driver with patches/winemac-cross-process-swapchains.patch:
-# these launchers draw their browser UI from a GPU process into a
-# window another process owns (Wine bug 60263), which the stock
-# driver cannot present, so their windows stay white or black.
-# dxmt/ DXMT (d3d10core, d3d11, dxgi, winemetal) from Highball's branch,
-# which presents across processes when DXMT_ALLOW_CROSS_PROCESS_SWAPCHAIN=1.
+# winemac.so the engine's Mac driver (scripts/build-engine.sh, with
+# patches/engine/0007-remote-child-layers.patch): these launchers draw
+# their browser UI from a GPU process into a window another process
+# owns, which the driver now shows in the owner's window.
+# dxmt/ DXMT (d3d10core, d3d11, dxgi, winemetal) built from 3Shain/dxmt
+# with patches/dxmt-cross-process-window.patch, so the GPU process may
+# create a swapchain on that window.
#
# Needs the engine build tree from scripts/build-engine.sh ($WORK/sources/wine and
# $WORK/wine-build). Prints the manifest for resources/launcher-support.json.
@@ -18,9 +19,12 @@ WORK="${WORK:-$HOME/.battlenet-macos/build}"
WINE="$WORK/sources/wine"
VERSION="${1:-launcher-support-v1}"
OUT="${OUT:-$WORK/$VERSION}"
-DXMT_URL="https://github.com/gauthierpiarrette/highball-engine/releases/download/dxmt-highball-20260930T161516Z-a444716/dxmt-highball-20260930T161516Z-a444716.tar.gz"
-DXMT_SHA256="96feaf5d98d3c6cdc3edea9503e2891d435df8d5bfdf7d3f6998a56ec62bbd58"
-DXMT_COMMIT="a44471614f7cf4817e4eee717993eb19e35184b9"
+# DXMT master after v0.80: v0.80 lacks ID3D11DeviceContext1::SwapDeviceContextState, which the
+# Rockstar Games Launcher calls at start.
+DXMT_COMMIT="0df86108348bab2aaa5c4610a5eb63a9de9047ac"
+# DXMT's toolchains (x86_64 LLVM 15 and the v8.16-3shain Wine tools), as scripts/build-steam-support.sh sets them up.
+DXMT_TOOLCHAINS="${DXMT_TOOLCHAINS:-${SOJU_STEAM_BUILD:-$HOME/.battlenet-macos/steam-build}/dxmt/toolchains}"
+MESON="${MESON:-${SOJU_STEAM_BUILD:-$HOME/.battlenet-macos/steam-build}/venv/bin/meson}"
LLVM_LICENSE_URL="https://raw.githubusercontent.com/llvm/llvm-project/llvmorg-15.0.7/llvm/LICENSE.TXT"
export PATH="/opt/homebrew/opt/bison/bin:/opt/homebrew/bin:$PATH"
@@ -34,34 +38,48 @@ fetch_checked(){ # url, dest, sha256
[ "$got" = "$3" ] || { rm -f "$2"; echo "Checksum mismatch for $1 (got $got)" >&2; return 1; }
}
-if ! grep -q WM_MACDRV_CREATE_REMOTE_LAYER "$WINE/dlls/winemac.drv/macdrv.h"; then
- echo "==> Applying patches/winemac-cross-process-swapchains.patch"
- patch -p1 -d "$WINE" < "$ROOT/patches/winemac-cross-process-swapchains.patch"
-fi
+grep -q WM_MACDRV_PLACE_REMOTE_LAYER "$WINE/dlls/winemac.drv/macdrv.h" \
+ || { echo "The engine tree lacks patches/engine/0007-remote-child-layers.patch; rerun scripts/build-engine.sh" >&2; exit 1; }
echo "==> Building winemac.so"
( cd "$WORK/wine-build" && arch -x86_64 make -j"$(sysctl -n hw.ncpu)" dlls/winemac.drv/winemac.so )
-echo "==> DXMT (Highball branch, $DXMT_COMMIT)"
-fetch_checked "$DXMT_URL" "$WORK/dxmt-highball.tar.gz" "$DXMT_SHA256"
-rm -rf "$OUT" "$WORK/dxmt-highball"; mkdir -p "$OUT/dxmt" "$OUT/licenses" "$WORK/dxmt-highball"
-tar -xzf "$WORK/dxmt-highball.tar.gz" -C "$WORK/dxmt-highball"
-for arch in x86_64-windows i386-windows; do
- mkdir -p "$OUT/dxmt/$arch"
- for f in d3d10core d3d11 dxgi winemetal; do cp "$WORK/dxmt-highball/highball/$arch/$f.dll" "$OUT/dxmt/$arch/"; done
+echo "==> DXMT $DXMT_COMMIT"
+[ -x "$MESON" ] && [ -d "$DXMT_TOOLCHAINS/llvm" ] && [ -d "$DXMT_TOOLCHAINS/wine" ] \
+ || { echo "DXMT toolchains not found ($DXMT_TOOLCHAINS); run scripts/build-steam-support.sh first" >&2; exit 1; }
+DX="$WORK/dxmt-${DXMT_COMMIT:0:10}"
+if [ ! -d "$DX/.git" ]; then
+ git init -q "$DX" && git -C "$DX" remote add origin https://github.com/3Shain/dxmt.git
+ git -C "$DX" fetch -q --depth 1 origin "$DXMT_COMMIT" && git -C "$DX" checkout -q FETCH_HEAD
+ git -C "$DX" submodule update --init --depth 1 include/native/directx
+fi
+[ "$(git -C "$DX" rev-parse HEAD)" = "$DXMT_COMMIT" ] || { echo "DXMT checkout is not $DXMT_COMMIT" >&2; exit 1; }
+git -C "$DX" apply --reverse --check "$ROOT/patches/dxmt-cross-process-window.patch" 2>/dev/null \
+ || git -C "$DX" apply "$ROOT/patches/dxmt-cross-process-window.patch"
+mkdir -p "$DX/toolchains"; ln -sfn "$DXMT_TOOLCHAINS/llvm" "$DX/toolchains/llvm"; ln -sfn "$DXMT_TOOLCHAINS/wine" "$DX/toolchains/wine"
+( cd "$DX" && export MACOSX_DEPLOYMENT_TARGET=14.0 \
+ && { [ -f build64/build.ninja ] || "$MESON" setup --cross-file build-win64.txt -Dnative_llvm_path=toolchains/llvm \
+ -Dwine_install_path=toolchains/wine build64 --buildtype release --prefix "$DX/install64" --strip; } \
+ && "$MESON" compile -C build64 && "$MESON" install -C build64 \
+ && { [ -f build32/build.ninja ] || "$MESON" setup --cross-file build-win32.txt -Dwine_install_path=toolchains/wine \
+ build32 --buildtype release --prefix "$DX/install32" --strip; } \
+ && "$MESON" compile -C build32 && "$MESON" install -C build32 )
+rm -rf "$OUT"; mkdir -p "$OUT/dxmt/x86_64-windows" "$OUT/dxmt/i386-windows" "$OUT/dxmt/x86_64-unix" "$OUT/licenses"
+for f in d3d10core d3d11 dxgi winemetal; do
+ cp "$(find "$DX/install64" -name "$f.dll" | head -1)" "$OUT/dxmt/x86_64-windows/"
+ cp "$(find "$DX/install32" -name "$f.dll" | head -1)" "$OUT/dxmt/i386-windows/"
done
-mkdir -p "$OUT/dxmt/x86_64-unix"
-cp "$WORK/dxmt-highball/highball/x86_64-unix/winemetal.so" "$OUT/dxmt/x86_64-unix/"
+cp "$(find "$DX/install64" -name winemetal.so | head -1)" "$OUT/dxmt/x86_64-unix/"
cp "$WORK/wine-build/dlls/winemac.drv/winemac.so" "$OUT/winemac.so"
cp "$WINE/COPYING.LIB" "$OUT/licenses/Wine-LGPL.txt"
-curl -fsSL "https://raw.githubusercontent.com/gauthierpiarrette/dxmt/$DXMT_COMMIT/LICENSE" -o "$OUT/licenses/DXMT.txt"
+cp "$DX/LICENSE" "$OUT/licenses/DXMT.txt"
curl -fsSL "$LLVM_LICENSE_URL" -o "$OUT/licenses/LLVM.txt"
cat > "$OUT/SOURCES.txt" <<EOF
winemac.so: Wine from CodeWeavers' crossover-sources-26.3.0.tar.gz with the patches
- scripts/build-engine.sh applies, plus patches/winemac-cross-process-swapchains.patch
- (https://github.com/BCD1210/soju). Built by scripts/build-launcher-support.sh.
-dxmt/: DXMT, https://github.com/gauthierpiarrette/dxmt at $DXMT_COMMIT
- (prebuilt: $DXMT_URL, sha256 $DXMT_SHA256). LLVM is linked into winemetal.so.
+ scripts/build-engine.sh applies (https://github.com/BCD1210/soju). Built by
+ scripts/build-launcher-support.sh.
+dxmt/: DXMT, https://github.com/3Shain/dxmt at $DXMT_COMMIT, with
+ patches/dxmt-cross-process-window.patch. LLVM 15.0.7 is linked into winemetal.so.
EOF
echo "==> Packing"
diff --git a/scripts/create-launcher-bottle.sh b/scripts/create-launcher-bottle.sh
index 91dc3d19ffb..5ade7de5753 100755
--- a/scripts/create-launcher-bottle.sh
+++ b/scripts/create-launcher-bottle.sh
@@ -36,7 +36,6 @@ if installed; then echo "==> $NAME already installed"; exit 0; fi
ENGINE=$(bash "$ROOT/scripts/launcher-engine.sh")
export WINEDEBUG="${WINEDEBUG:-fixme-all}" WINEMSYNC=1 ROSETTA_ADVERTISE_AVX=1 WINE_SIMULATE_WRITECOPY=1
-export DXMT_ALLOW_CROSS_PROCESS_SWAPCHAIN=1
export CX_APPLEGPTK_LIBD3DSHARED_PATH="$ENGINE/lib/external/libd3dshared.dylib"
export DYLD_FALLBACK_LIBRARY_PATH="$ENGINE/lib:/usr/lib"
W="$ENGINE/bin/wine"
diff --git a/scripts/launcher-engine.sh b/scripts/launcher-engine.sh
index af7b21b8342..f378f70bd12 100755
--- a/scripts/launcher-engine.sh
+++ b/scripts/launcher-engine.sh
@@ -5,12 +5,12 @@
#
# It is a copy of the CX engine (an APFS clone: no extra disk space) with the
# launcher-support component on top (scripts/build-launcher-support.sh):
-# - winemac.so with patches/winemac-cross-process-swapchains.patch. These
+# - winemac.so with patches/engine/0007-remote-child-layers.patch. These
# launchers draw their browser UI from a GPU process into a window another
# process owns; the stock driver cannot present that, so the windows stay
# white (Ubisoft) or black (Rockstar, EA).
-# - DXMT for d3d10core/d3d11/dxgi, which presents across processes when
-# DXMT_ALLOW_CROSS_PROCESS_SWAPCHAIN=1. D3DMetal cannot. D3D12 stays on D3DMetal.
+# - DXMT for d3d10core/d3d11/dxgi, with patches/dxmt-cross-process-window.patch
+# so it accepts that window. D3D12 stays on D3DMetal.
# Battle.net, Epic and GOG keep the CX engine exactly as it is.
#
# The copy is rebuilt when the CX engine, its GPTK payload or the component
diff --git a/scripts/play.sh b/scripts/play.sh
index ad31a549753..e9ac863d0ac 100755
--- a/scripts/play.sh
+++ b/scripts/play.sh
@@ -62,8 +62,7 @@ case "$MODE" in
ea-kill|rockstar-kill|ubisoft-kill)
ENGINE="${SOJU_LAUNCHER_ENGINE:-${SOJU_BASE:-$HOME/.battlenet-macos}/cx26-engine-launchers}" ;;
ea|rockstar|ubisoft)
- ENGINE=$(SOJU_CX_ENGINE="$ENGINE" bash "$(dirname "${BASH_SOURCE[0]}")/launcher-engine.sh") || exit 1
- export DXMT_ALLOW_CROSS_PROCESS_SWAPCHAIN=1 ;;
+ ENGINE=$(SOJU_CX_ENGINE="$ENGINE" bash "$(dirname "${BASH_SOURCE[0]}")/launcher-engine.sh") || exit 1 ;;
esac
export WINEDEBUG="${WINEDEBUG:-fixme-all}"
diff --git a/scripts/steam-gptk-engine.sh b/scripts/steam-gptk-engine.sh
index a380088d893..8e7928a133b 100755
--- a/scripts/steam-gptk-engine.sh
+++ b/scripts/steam-gptk-engine.sh
@@ -4,7 +4,7 @@
# in and downloads, and Overwatch 2 from Steam reaches its main menu online.
#
# It is a copy of the CX engine (an APFS clone: no extra disk space) with one
-# file replaced: winemac.so with patches/winemac-cross-process-swapchains.patch
+# file replaced: winemac.so with patches/engine/0007-remote-child-layers.patch
# from the launcher-support component (scripts/build-launcher-support.sh).
# Steam's browser UI draws from a helper process into a window steam.exe owns;
# the stock driver leaves that window black. Everything else, Apple's d3d11,
diff --git a/scripts/update.sh b/scripts/update.sh
index 9e436df7ac7..88f38367f83 100755
--- a/scripts/update.sh
+++ b/scripts/update.sh
@@ -12,8 +12,8 @@ TTY=/dev/tty
say(){ printf '\n\033[1m%s\033[0m\n' "$*"; }
# Same pin and helpers as install.sh (tests/test_installation.py keeps them equal).
-ENGINE_TAG="engine-v1.8"
-ENGINE_SHA256="6e45b119cb01bf9e6ca8bca7cd1f1dd74a88611c6bb5146e33ec98cfc17a3dbf"
+ENGINE_TAG="engine-v1.9"
+ENGINE_SHA256="35daeaf595f906f2a6338dee05c953e133b820ffbd95beab3caf73ade6018d61"
ENGINE_URL="https://github.com/$REPO/releases/download/$ENGINE_TAG/wine-engine-x86_64.tar.xz"
fetch_verified(){ # url, dest, sha256
diff --git a/site/content/index.json b/site/content/index.json
index c43b09ab197..a8ae82d7855 100644
--- a/site/content/index.json
+++ b/site/content/index.json
@@ -94,8 +94,8 @@
"@id": "https://didimlabs.com/#soju",
"name": "Soju",
"url": "https://didimlabs.com/",
- "downloadUrl": "https://github.com/BCD1210/soju/releases/download/v1.14.21/Soju-1.14.21-macos-arm64.zip",
- "softwareVersion": "1.14.21",
+ "downloadUrl": "https://github.com/BCD1210/soju/releases/download/v1.14.22/Soju-1.14.22-macos-arm64.zip",
+ "softwareVersion": "1.14.22",
"description": "Free, open-source Mac app that installs the official Windows launchers for Steam, Battle.net, Epic Games, GOG GALAXY, EA app, Rockstar Games Launcher, Ubisoft Connect and Xbox PC on Apple Silicon and shows every installed game in one library.",
"applicationCategory": "GameApplication",
"operatingSystem": "macOS 14 or later, Apple Silicon (M1 or newer)",
@@ -129,7 +129,7 @@
"@type": "HowToStep",
"position": 1,
"name": "Download the app",
- "text": "Soju-1.14.21-macos-arm64.zip. Unzip it and move Soju to Applications. Signing notes."
+ "text": "Soju-1.14.22-macos-arm64.zip. Unzip it and move Soju to Applications. Signing notes."
},
{
"@type": "HowToStep",
@@ -154,8 +154,8 @@
"lead": "A free Mac app for playing Windows games on Apple Silicon. It installs the real Steam, Battle.net, Epic, GOG GALAXY, EA app, Rockstar, Ubisoft Connect and Xbox PC launchers, keeps each in its own Wine setup, and lists every installed game in one library.",
"actions": [
{
- "label": "Download Soju 1.14.21",
- "href": "https://github.com/BCD1210/soju/releases/download/v1.14.21/Soju-1.14.21-macos-arm64.zip",
+ "label": "Download Soju 1.14.22",
+ "href": "https://github.com/BCD1210/soju/releases/download/v1.14.22/Soju-1.14.22-macos-arm64.zip",
"primary": true
},
{
@@ -363,7 +363,7 @@
"items": [
{
"title": "Download the app",
- "text": "[Soju-1.14.21-macos-arm64.zip](https://github.com/BCD1210/soju/releases/download/v1.14.21/Soju-1.14.21-macos-arm64.zip). Unzip it and move Soju to Applications. [Signing notes](https://github.com/BCD1210/soju/blob/main/docs/DESKTOP.md)."
+ "text": "[Soju-1.14.22-macos-arm64.zip](https://github.com/BCD1210/soju/releases/download/v1.14.22/Soju-1.14.22-macos-arm64.zip). Unzip it and move Soju to Applications. [Signing notes](https://github.com/BCD1210/soju/blob/main/docs/DESKTOP.md)."
},
{
"title": "Pick launchers",
@@ -450,8 +450,8 @@
},
"actions": [
{
- "label": "Download Soju 1.14.21",
- "href": "https://github.com/BCD1210/soju/releases/download/v1.14.21/Soju-1.14.21-macos-arm64.zip",
+ "label": "Download Soju 1.14.22",
+ "href": "https://github.com/BCD1210/soju/releases/download/v1.14.22/Soju-1.14.22-macos-arm64.zip",
"primary": true
},
{
diff --git a/site/content/ko.json b/site/content/ko.json
index 42034d445cb..8123ab3fb1d 100644
--- a/site/content/ko.json
+++ b/site/content/ko.json
@@ -68,8 +68,8 @@
"lead": "애플 실리콘 맥에서 윈도우 게임을 하기 위한 무료 맥 앱입니다. 진짜 스팀, 배틀넷, 에픽, GOG GALAXY, EA 앱, 락스타, 유비소프트 커넥트, Xbox PC 런처를 각각 따로 된 Wine 환경에 설치하고, 설치된 게임을 한 라이브러리에 모아 보여 줍니다.",
"actions": [
{
- "label": "소주 1.14.21 다운로드",
- "href": "https://github.com/BCD1210/soju/releases/download/v1.14.21/Soju-1.14.21-macos-arm64.zip",
+ "label": "소주 1.14.22 다운로드",
+ "href": "https://github.com/BCD1210/soju/releases/download/v1.14.22/Soju-1.14.22-macos-arm64.zip",
"primary": true
},
{
@@ -267,7 +267,7 @@
"items": [
{
"title": "앱 받기",
- "text": "[Soju-1.14.21-macos-arm64.zip](https://github.com/BCD1210/soju/releases/download/v1.14.21/Soju-1.14.21-macos-arm64.zip)을 받아 압축을 풀고 응용 프로그램 폴더로 옮깁니다."
+ "text": "[Soju-1.14.22-macos-arm64.zip](https://github.com/BCD1210/soju/releases/download/v1.14.22/Soju-1.14.22-macos-arm64.zip)을 받아 압축을 풀고 응용 프로그램 폴더로 옮깁니다."
},
{
"title": "런처 고르기",
@@ -350,8 +350,8 @@
},
"actions": [
{
- "label": "소주 1.14.21 다운로드",
- "href": "https://github.com/BCD1210/soju/releases/download/v1.14.21/Soju-1.14.21-macos-arm64.zip",
+ "label": "소주 1.14.22 다운로드",
+ "href": "https://github.com/BCD1210/soju/releases/download/v1.14.22/Soju-1.14.22-macos-arm64.zip",
"primary": true
},
{
@@ -395,7 +395,7 @@
"@type": "HowToStep",
"position": 1,
"name": "앱 받기",
- "text": "Soju-1.14.21-macos-arm64.zip을 받아 압축을 풀고 응용 프로그램 폴더로 옮깁니다."
+ "text": "Soju-1.14.22-macos-arm64.zip을 받아 압축을 풀고 응용 프로그램 폴더로 옮깁니다."
},
{
"@type": "HowToStep",