Play your Steam library's Windows games on a jailbroken PS5.
C++
Use kit 0.18 with several controllers
Leonardo Lobato81b54f491193
diff --git a/COMPATIBILITY.md b/COMPATIBILITY.mdindex 3ba5bd3..c8fbb10 100644--- a/COMPATIBILITY.md+++ b/COMPATIBILITY.md@@ -364,7 +364,7 @@ Development builds carry the version they lead to, such as `0.12-dev.20261020.1`| Kit | What changed for games || --- | --- |-| 0.18 | A launcher's Play can start its game: turn on Game settings › Start through a launcher, or use Run a program once. Games that close a window and open another under OpenGL, such as Balatro, no longer stay on their loading screen. Games that need OpenAL find it. Launcher windows take clicks and keep their stacking order. Direct3D 12 games can show their frame rate with Performance overlay. Launchers see the real video memory. A game restarted after quitting finds its files when the console gives it a new sandbox. Games that play mp3 or WAV music through DirectShow have sound, and no longer stop after retrying a file they can't play. Bottles need no Recreate; games set up on 0.17 or earlier update their runtime on their next Play. |+| 0.18 | Up to four controllers, one for each signed-in PS5 user, and a PlayStation controller choice in Game settings. A launcher's Play can start its game: turn on Game settings › Start through a launcher, or use Run a program once. Games that close a window and open another under OpenGL, such as Balatro, no longer stay on their loading screen. Games that need OpenAL find it. Launcher windows take clicks and keep their stacking order. Direct3D 12 games can show their frame rate with Performance overlay. Launchers see the real video memory. A game restarted after quitting finds its files when the console gives it a new sandbox. Games that play mp3 or WAV music through DirectShow have sound, and no longer stop after retrying a file they can't play. Bottles need no Recreate; games set up on 0.17 or earlier update their runtime on their next Play. || 0.17 | Games that keep hundreds of files open at once no longer stop with "Too many open files": Unreal Engine 3 games, Dead by Daylight, Euro Truck Simulator 2 and others. Bottles need no Recreate; games set up on 0.16 or earlier update their runtime on their next Play. || 0.16 | .NET games such as Slay the Spire 2 no longer close at start, as they did on 0.14 and 0.15. Reading a file into memory beside protected memory no longer fails. Bottles need no Recreate; games set up on 0.14 or 0.15 update their runtime on their next Play. || 0.15 | Unity games that use Mono (Darkwood, for one) no longer take minutes to load and run at a few frames per second, as they did on 0.14. Game settings › Frame generation (2×, 3×, 4×) works. Bottles need no Recreate; games set up on 0.14 update their runtime on their next Play. |diff --git a/README.md b/README.mdindex e8204d8..81ce5c6 100644--- a/README.md+++ b/README.md@@ -45,7 +45,7 @@ private Windows environment and its own tile on the PS5 Home screen.with rumble. Games see the DualSense as an Xbox controller, or, per game, as a PlayStation controller (a DualShock 4)for games that show PlayStation buttons; that choice needs a runtime kit with it.- **Local multiplayer.** Each signed-in PS5 user's DualSense is its own controller, up to four, for games with local- co-op or split screen, through XInput and the HID gamepad APIs (a runtime kit newer than 0.18). Player 2 must sign in to the PS5 as another user (or a guest) with their own DualSense.+ co-op or split screen, through XInput and the HID gamepad APIs (runtime kit 0.18 or newer). Player 2 must sign in to the PS5 as another user (or a guest) with their own DualSense.- **Mouse and keyboard.** Plug a USB mouse and keyboard into the PS5, or use a controller preset: the left stick as amouse, or the D-pad as the arrow keys.- **Import Windows games.** Add game folders you already have, from a USB drive, an M.2 SSD or over FTP. No Steamdiff --git a/THIRD_PARTY_NOTICES.md b/THIRD_PARTY_NOTICES.mdindex 8067800..35b5e97 100644--- a/THIRD_PARTY_NOTICES.md+++ b/THIRD_PARTY_NOTICES.md@@ -48,7 +48,7 @@ revisions it was built from and includes their license texts in `LICENSES/`, and| Component | Version | License | Source || --- | --- | --- | --- || Wine | upstream with the prospero-win patch series | LGPL-2.1-or-later | [winehq.org](https://www.winehq.org/), patches in prospero-win `wine/patches/` |-| prospero-win (Wine's PS5 side, the 32-bit translator, the per-game app shell) | kit 0.18: Wine, runtime and app shell `e7582e9` | LGPL-2.1 | [mpereiraesaa/prospero-win](https://github.com/mpereiraesaa/prospero-win), my fork [leolobato/prospero-win](https://github.com/leolobato/prospero-win) |+| prospero-win (Wine's PS5 side, the 32-bit translator, the per-game app shell) | kit 0.18: Wine, runtime and app shell `3f1da26` | LGPL-2.1 | [mpereiraesaa/prospero-win](https://github.com/mpereiraesaa/prospero-win), my fork [leolobato/prospero-win](https://github.com/leolobato/prospero-win) || prospero-foundation (native app tools for the per-game app shell) | kit 0.18: `9c0b994` | GPL-3.0 | Fork of [mpereiraesaa/ps5-native-app-boilerplate](https://github.com/mpereiraesaa/ps5-native-app-boilerplate) || DXVK | 2.6.2 | Zlib | [doitsujin/dxvk](https://github.com/doitsujin/dxvk) || vkd3d-proton (Direct3D 12 for games set to it), with dxil-spirv and dxbc-spirv | 3.0.1 (`3b10bd7`), unmodified | LGPL-2.1-or-later; MIT (dxil-spirv, dxbc-spirv); Apache-2.0 and MIT (Khronos SPIR-V and Vulkan headers and tools) | [HansKristian-Work/vkd3d-proton](https://github.com/HansKristian-Work/vkd3d-proton) |diff --git a/dependencies.lock.json b/dependencies.lock.jsonindex aed6449..82acbc1 100644--- a/dependencies.lock.json+++ b/dependencies.lock.json@@ -177,7 +177,7 @@}},"prospero_win": {- "revision": "3f1da268d5188852836ae2275643fa17efc4f533",+ "revision": "7cccb5d2585b0da8fe053c1b7d0087e04cea192e","url": "https://github.com/leolobato/prospero-win.git","default_source": "third_party/prospero-win","published": false,@@ -185,7 +185,7 @@"retained_runtime_artifact_revision": "bceed2d-kit-h-r1","upstream_url": "https://github.com/mpereiraesaa/prospero-win.git","branch": "main",- "note": "Rebased onto upstream b510eb3 on 2026-10-08. Any-title shell on fixed kit B (25a967d). Firmware 13.60 uses the authorized no-drop fallback; games retain root recovery. Runtime remains bea2be5. Same tree as kit C's shell revision 850e62c (history squashed; the old commits are on backup/playden-ps5-850e62c). 33130a9 adds publication metadata schema 3 (game_root.unowned) for game folders on exFAT drives. a9ce0d0 pins the packager to the kit D runtime built from 8ff88bf (rebased forks, direct-memory heap). Kits G to 0.13: see this file's git history. 053bdbf (2026-10-28): rebased onto upstream 404cac6 (33 upstream commits: thread and fiber stacks commit as on Windows (0604), Unix heap headroom (#470), protected-page faults (0974), parked directory descriptors (0871), single-program titles, the in-game menu ([display] menu), frame generation ([display] framegen), the PS5 keyboard on a two-finger click, touchpad Back/Guide halves, L2/R2 vibration, compatible vibration mode, the 3 s close hold, [input] player2, TLS roots 2026-10-20); 10 fork commits dropped as upstreamed; the old tip is on backup/rebase-pre-upstream-2026-10-28. 053bdbf adds [input] rumble = 0-100 (kit capability input-rumble); 54d6889 and 4b38aa5 fix two host tests on Linux (the RADV adapter syntax check and make sanitize). 3e306b5 pins the packager to the kit 0.14 runtime built from 053bdbf. 4f6d38e adds Wine patch 0986 (hot accesses beside an inaccessible page keep their host page whole instead of being single-stepped; Unity's Mono games such as Darkwood ran at 5 fps on 0.14) and 2ffeb6c its test. 28ed795 pins the packager to the kit 0.15 runtime built from 4f6d38e. cbda37d adds Wine patch 0987 (hot writes beside a code page are not reported) and d711a65 its test. 0920845 adds Wine patch 0988 (kernel writes beside a protected page), 4d0d97d 0989 (that report only with PW_SUBPAGE_REPORT=1), 7c6e272 tests. 1bd9163 pins the packager to the kit 0.16 runtime built from 4d0d97d. 3926b27 adds Wine patch 0993 (read-only file descriptors past a budget are parked and opened again by name: a title can hold only about 256 files from open() at once). 8604b97 pins the packager to the kit 0.17 runtime built from 3926b27. 46a3203 moves the Mesa WGL/Zink recipe to PS5_Mesa 4778ff0 (a context destroyed before its end-of-frame flush no longer keeps its swapchain; only libgallium_wgl.dll and opengl32.dll change); kit 0.17 and its runtime are unchanged until a kit is built from it. 44ccf5a to 2b53efa add the exec chain and launcher mode: Wine patches 0994-0997, the profile's [launcher] section (kit capability launcher-mode), the touchpad preset swap, OpenAL Soft from win/openal-soft, and a chained program's own architecture and graphics. 008d3f7 pins the packager to the kit 0.18 runtime built from 2b53efa. d610e32 (Wine 0998) reports video memory above 4 GiB correctly, 24fdf79 adds the driver frame rate counter ([display] fps_counter), c290606 finds the title's sandbox, ba1455c adds the WAV, MP3 and ID3 parsers (Wine 0999), and e7582e9 releases a failed media graph once (Wine 0485). 0036091 pins the packager to the rebuilt kit 0.18. f33828e and a20e7dc take upstream 957d987 and 0e7b6b4 (Wine 0471, the other signed-in users' DualSenses as XInput controllers 1 to 3); 0d5a98d keeps the fork's rumble scaling, launcher presets and device-change notice on them, and 94222f8 adds Wine 0966 (those controllers as HID gamepads while connected, listed after controller 0, asked for when a program opens a HID device, waited for at a hosted start). c650ce5 adds Wine 0990-0992 and 3f1da26 the title's [input] mode = playstation (kit capability input-playstation): each controller as a DualShock 4 on the HID bus, and no XInput controllers."+ "note": "Rebased onto upstream b510eb3 on 2026-10-08. Any-title shell on fixed kit B (25a967d). Firmware 13.60 uses the authorized no-drop fallback; games retain root recovery. Runtime remains bea2be5. Same tree as kit C's shell revision 850e62c (history squashed; the old commits are on backup/playden-ps5-850e62c). 33130a9 adds publication metadata schema 3 (game_root.unowned) for game folders on exFAT drives. a9ce0d0 pins the packager to the kit D runtime built from 8ff88bf (rebased forks, direct-memory heap). Kits G to 0.13: see this file's git history. 053bdbf (2026-10-28): rebased onto upstream 404cac6 (33 upstream commits: thread and fiber stacks commit as on Windows (0604), Unix heap headroom (#470), protected-page faults (0974), parked directory descriptors (0871), single-program titles, the in-game menu ([display] menu), frame generation ([display] framegen), the PS5 keyboard on a two-finger click, touchpad Back/Guide halves, L2/R2 vibration, compatible vibration mode, the 3 s close hold, [input] player2, TLS roots 2026-10-20); 10 fork commits dropped as upstreamed; the old tip is on backup/rebase-pre-upstream-2026-10-28. 053bdbf adds [input] rumble = 0-100 (kit capability input-rumble); 54d6889 and 4b38aa5 fix two host tests on Linux (the RADV adapter syntax check and make sanitize). 3e306b5 pins the packager to the kit 0.14 runtime built from 053bdbf. 4f6d38e adds Wine patch 0986 (hot accesses beside an inaccessible page keep their host page whole instead of being single-stepped; Unity's Mono games such as Darkwood ran at 5 fps on 0.14) and 2ffeb6c its test. 28ed795 pins the packager to the kit 0.15 runtime built from 4f6d38e. cbda37d adds Wine patch 0987 (hot writes beside a code page are not reported) and d711a65 its test. 0920845 adds Wine patch 0988 (kernel writes beside a protected page), 4d0d97d 0989 (that report only with PW_SUBPAGE_REPORT=1), 7c6e272 tests. 1bd9163 pins the packager to the kit 0.16 runtime built from 4d0d97d. 3926b27 adds Wine patch 0993 (read-only file descriptors past a budget are parked and opened again by name: a title can hold only about 256 files from open() at once). 8604b97 pins the packager to the kit 0.17 runtime built from 3926b27. 46a3203 moves the Mesa WGL/Zink recipe to PS5_Mesa 4778ff0 (a context destroyed before its end-of-frame flush no longer keeps its swapchain; only libgallium_wgl.dll and opengl32.dll change); kit 0.17 and its runtime are unchanged until a kit is built from it. 44ccf5a to 2b53efa add the exec chain and launcher mode: Wine patches 0994-0997, the profile's [launcher] section (kit capability launcher-mode), the touchpad preset swap, OpenAL Soft from win/openal-soft, and a chained program's own architecture and graphics. 008d3f7 pins the packager to the kit 0.18 runtime built from 2b53efa. d610e32 (Wine 0998) reports video memory above 4 GiB correctly, 24fdf79 adds the driver frame rate counter ([display] fps_counter), c290606 finds the title's sandbox, ba1455c adds the WAV, MP3 and ID3 parsers (Wine 0999), and e7582e9 releases a failed media graph once (Wine 0485). 0036091 pins the packager to the rebuilt kit 0.18. f33828e and a20e7dc take upstream 957d987 and 0e7b6b4 (Wine 0471, the other signed-in users' DualSenses as XInput controllers 1 to 3); 0d5a98d keeps the fork's rumble scaling, launcher presets and device-change notice on them, and 94222f8 adds Wine 0966 (those controllers as HID gamepads while connected, listed after controller 0, asked for when a program opens a HID device, waited for at a hosted start). c650ce5 adds Wine 0990-0992 and 3f1da26 the title's [input] mode = playstation (kit capability input-playstation): each controller as a DualShock 4 on the HID bus, and no XInput controllers. 7cccb5d pins the runtime built from 3f1da26 in the packager."},"prospero_bottle_preparation": {"hl2-fresh-v16": {@@ -227,9 +227,9 @@"prospero_kit": {"kit_id": "playden-kit","published": false,- "status": "Kit 0.18, installed as playden-kit. Kit 0.17 with ntdll.prx, win32u.prx, libvulkan.prx and winegstreamer.prx from prospero-win e7582e9 (Wine patches 0485 and 0994-0999: a launcher's Play starts its game through the title, pointer and window order fixes, video memory above 4 GiB, mp3 and WAV through DirectShow, a failed media graph released once; the driver's frame rate counter), the any-title shell from e7582e9 (exec chain, launcher mode, touchpad preset swap, a sandbox other than _000), libgallium_wgl.dll and opengl32.dll from PS5_Mesa 4778ff0 (Balatro's swapchain fix), OpenAL Soft 1.25.2 and the capabilities launcher-mode and display-fps-counter. Every other module, Mono, DXVK, vkd3d-proton, the Lapy helper and the template are 0.17's, so bottles need no Recreate. Earlier kits (0.17, 0.16, 0.15, 0.14, 0.13, 0.12, 0.11, 0.10, H r1-r9): see this file's git history.",- "manifest_sha256": "3d5c400667587de4a89b74b99a8be6dc106cde4f04055f32a93f15f3d5ff5b25",- "files_sha256": "f513e269632b3f78979715a09ecd6d9e6a3d9fdb8678bcea80f5bf323bff998c",+ "status": "Kit 0.18, installed as playden-kit. Kit 0.17 with ntdll.prx, win32u.prx, libvulkan.prx, winegstreamer.prx, winebus.prx and xinput1_3.prx from prospero-win 3f1da26 (Wine patches 0485 and 0994-0999: a launcher's Play starts its game through the title, pointer and window order fixes, video memory above 4 GiB, mp3 and WAV through DirectShow, a failed media graph released once; the driver's frame rate counter), the any-title shell from 3f1da26 (exec chain, launcher mode, touchpad preset swap, a sandbox other than _000), libgallium_wgl.dll and opengl32.dll from PS5_Mesa 4778ff0 (Balatro's swapchain fix), OpenAL Soft 1.25.2 and the capabilities launcher-mode, display-fps-counter and input-playstation. From 3f1da26 too: up to four controllers through XInput and HID (Wine 0471, 0966; xinput, winebus.sys, hidclass.sys, ntoskrnl.exe), the DualShock 4 mode (Wine 0990-0992). Every other module, Mono, DXVK, vkd3d-proton, the Lapy helper and the template are 0.17's, so bottles need no Recreate. Earlier kits (0.17, 0.16, 0.15, 0.14, 0.13, 0.12, 0.11, 0.10, H r1-r9): see this file's git history.",+ "manifest_sha256": "3b16bf5c30a6e91e91029ea78cfed5ff234c6ce25529b06fac24baf728e93c28",+ "files_sha256": "bced31d6a1afd1232595eeb0f950cb934b1e9d147b8152758dc9bf35868302f5","console_root": "/data/playden/kits/playden-kit","firmware": ["13.60"@@ -240,6 +240,7 @@"display-framegen","dxvk","game-root-unowned",+ "input-playstation","input-rumble","launcher-mode","offline_bottle",@@ -253,9 +254,9 @@"wine-shared-sections","wow64_i386"],- "wrapper_revision": "e7582e9261f2c69691f074b942998302eed6a0a5",- "runtime_artifact_revision": "e7582e9-kit-0.18",- "runtime_inventory_source": "Kit 0.18: kit 0.17 with ntdll.prx, win32u.prx, libvulkan.prx and winegstreamer.prx from the prospero-win e7582e9 cross build (kit-h/wine-ps5-0.18d, the 0.17 recipe, media from ~/media-kit-018; its other PRX modules came out byte-identical to 0.17's) and the any-title shell built from e7582e9 with tools/build_native.sh. Kit 0.17: kit 0.16 with wineserver.prx from the prospero-win 3926b27 cross build (kit-h/wine-ps5-0993, the 0.16 recipe; its other 16 PRX modules came out byte-identical to 0.16's). Kit 0.16: kit 0.15 with ntdll.prx from the prospero-win 4d0d97d cross build (kit-h/wine-ps5-0989b, the 0.15 recipe; its other 16 PRX modules came out byte-identical to 0.15's). Kit 0.15: kit 0.14 with ntdll.prx from the prospero-win 4f6d38e cross build (kit-h/wine-ps5-0986, the 0.14 recipe; its other 16 PRX modules came out byte-identical to 0.14's). Kit 0.14: every module of the prospero-win 053bdbf cross build (kit-h/wine-ps5-0.14, RADV from PS5_Mesa 15f78ec) with the cacert-2026-10-20 bundle, modules the build does not make kept from 0.13, and the any-title shell built from 053bdbf with tools/build_native.sh. Kit 0.13: kit 0.12 with ntdll.prx and win32u.prx from the prospero-win 031302d cross build (0984-cross.sh, the 0.12 recipe), the any-title shell built from ce28942 with tools/build_native.sh, and libvulkan.prx from PS5_Mesa 15f78ec. Kit 0.12: kit 0.11 with libvulkan.prx and win32u.prx from the prospero-win 7c81f68 cross build and the any-title shell built from f729534. Earlier kits: see this file's git history.",+ "wrapper_revision": "3f1da268d5188852836ae2275643fa17efc4f533",+ "runtime_artifact_revision": "3f1da26-kit-0.18",+ "runtime_inventory_source": "Kit 0.18: kit 0.17 with ntdll.prx, win32u.prx, libvulkan.prx, winegstreamer.prx, winebus.prx and xinput1_3.prx from prospero-win (the e7582e9 cross build kit-h/wine-ps5-0.18d, then the 3f1da26 cross build kit-h/wine-ps5-mc7; the 0.17 recipe, media from ~/media-kit-018; its other PRX modules came out byte-identical) and the any-title shell built from 3f1da26 with tools/build_native.sh. Kit 0.17: kit 0.16 with wineserver.prx from the prospero-win 3926b27 cross build (kit-h/wine-ps5-0993, the 0.16 recipe; its other 16 PRX modules came out byte-identical to 0.16's). Kit 0.16: kit 0.15 with ntdll.prx from the prospero-win 4d0d97d cross build (kit-h/wine-ps5-0989b, the 0.15 recipe; its other 16 PRX modules came out byte-identical to 0.15's). Kit 0.15: kit 0.14 with ntdll.prx from the prospero-win 4f6d38e cross build (kit-h/wine-ps5-0986, the 0.14 recipe; its other 16 PRX modules came out byte-identical to 0.14's). Kit 0.14: every module of the prospero-win 053bdbf cross build (kit-h/wine-ps5-0.14, RADV from PS5_Mesa 15f78ec) with the cacert-2026-10-20 bundle, modules the build does not make kept from 0.13, and the any-title shell built from 053bdbf with tools/build_native.sh. Kit 0.13: kit 0.12 with ntdll.prx and win32u.prx from the prospero-win 031302d cross build (0984-cross.sh, the 0.12 recipe), the any-title shell built from ce28942 with tools/build_native.sh, and libvulkan.prx from PS5_Mesa 15f78ec. Kit 0.12: kit 0.11 with libvulkan.prx and win32u.prx from the prospero-win 7c81f68 cross build and the any-title shell built from f729534. Earlier kits: see this file's git history.","wine_mono": {"version": "11.3.0","url": "https://dl.winehq.org/wine/wine-mono/11.3.0/wine-mono-11.3.0-x86.tar.xz",diff --git a/src/runtime/kit_trust.h b/src/runtime/kit_trust.hindex c9d6fe1..7585329 100644--- a/src/runtime/kit_trust.h+++ b/src/runtime/kit_trust.h@@ -13,7 +13,7 @@ namespace playden::runtime {inline constexpr const char* kDevelopmentKitId = "playden-kit";inline constexpr const char* kDevelopmentKitRoot = "/data/playden/kits/playden-kit";inline constexpr const char* kExpectedKitManifestSha256 =- "3d5c400667587de4a89b74b99a8be6dc106cde4f04055f32a93f15f3d5ff5b25";+ "3b16bf5c30a6e91e91029ea78cfed5ff234c6ce25529b06fac24baf728e93c28";// Ids a kit had before it was renamed: its folder under /data/playden/kits and its manifest's kit_id.// A title, bottle or settings publication made from the earlier id belongs to the renamed kit (Updatediff --git a/third_party/prospero-win b/third_party/prospero-winindex 3f1da26..7cccb5d 160000--- a/third_party/prospero-win+++ b/third_party/prospero-win@@ -1 +1 @@-Subproject commit 3f1da268d5188852836ae2275643fa17efc4f533+Subproject commit 7cccb5d2585b0da8fe053c1b7d0087e04cea192e