Free fork of NotProton: Windows Steam games in Mac Steam, on CodeWeavers' Wine and Apple's Game Porting Toolkit
Swift apple-silicond3dmetaldxmtdxvkgame-porting-toolkitgptkmac-gamingmacosmetalfxrosetta-2steamsteam-playwinewinecx
build(sdl): bundle SDL 2.32.10 with the GameSir collection patch
raymondchins811e2c337527
diff --git a/NOTICE b/NOTICEindex 1062419..dda0c1f 100644--- a/NOTICE+++ b/NOTICE@@ -45,11 +45,11 @@ The WineCX engine gets an x86_64 SDL2 from the app bundle, for controller supporin winebus.so (docs/WINECX.md):app/Sources/NotProtonApp/Resources/libSDL2-2.0.0.dylib- Simple DirectMedia Layer 2.32.8 (SDL-release-2.32.8-0-g98d1f3a45),- https://github.com/libsdl-org/SDL/tree/release-2.32.8, binary unmodified- except for an ad-hoc code signature.+ Simple DirectMedia Layer 2.32.10 (SDL-release-2.32.10-0-g5d2495703),+ https://github.com/libsdl-org/SDL/tree/release-2.32.10, built x86_64 with+ winemac-patch/sdl2-iokit-gamepad-collection.patch and signed ad hoc.Copyright (C) 1997-2025 Sam Lantinga <[email protected]>.- zlib license, https://github.com/libsdl-org/SDL/blob/release-2.32.8/LICENSE.txt+ zlib license, https://github.com/libsdl-org/SDL/blob/release-2.32.10/LICENSE.txtapp/Sources/NotProtonApp/Resources/winebus-winecx-11.15.sowinecx 5b45f45 (Wine, LGPL-2.1-or-later), built with SDL2 support.diff --git a/app/Sources/NotProtonApp/Model/FreeEngineWinecx.swift b/app/Sources/NotProtonApp/Model/FreeEngineWinecx.swiftindex acf2d93..77b9239 100644--- a/app/Sources/NotProtonApp/Model/FreeEngineWinecx.swift+++ b/app/Sources/NotProtonApp/Model/FreeEngineWinecx.swift@@ -106,12 +106,12 @@ enum FreeEngineWinecx {sha256: "f79d417f675d00008375eb4ea2318af6fcd0b27971d604d3cf345a0dcfa998a0"),]- // SDL 2.32.8 (zlib license, NOTICE) built x86_64 with winemac-patch/sdl2-iokit-gamepad-collection.patch+ // SDL 2.32.10 (zlib license, NOTICE) built x86_64 with winemac-patch/sdl2-iokit-gamepad-collection.patch// (pads whose gamepad is a secondary HID collection, e.g. GameSir G7 Pro over Bluetooth),// signed ad hoc, since a release build strips unsigned Mach-O resources and would break the pin.private static let sdl = WinecxBundledFile(resource: "libSDL2-2.0.0", ext: "dylib", path: "lib/libSDL2-2.0.0.dylib",- sha256: "28ca23a44bb24b4bb42fe84902788ca866ac824c7b83ea2ca28aebc6640f344d")+ sha256: "aeeec088bf51f9eac0dbd8e26ae994c7b8568fb42fc676835d6dc2109fc559d1")// runtime 4.7.3: winecx e0aa380 (Wine 11.17), built by winecx-gptk 0bf3eab, minos 26.0.// Over 4.5.125 it carries the later msync fixes, kernelbase's FlsGetValue2 for Unitydiff --git a/app/Sources/NotProtonApp/Resources/libSDL2-2.0.0.dylib b/app/Sources/NotProtonApp/Resources/libSDL2-2.0.0.dylibindex fb15032..6e9050a 100755Binary files a/app/Sources/NotProtonApp/Resources/libSDL2-2.0.0.dylib and b/app/Sources/NotProtonApp/Resources/libSDL2-2.0.0.dylib differdiff --git a/docs/WINECX.md b/docs/WINECX.mdindex 6ca7b35..3ab74cd 100644--- a/docs/WINECX.md+++ b/docs/WINECX.md@@ -98,7 +98,7 @@ lib/wine/x86_64-unix/winemac.so Retina fix, replacing the archlib/wine/x86_64-unix/winebus.so built with SDL2, replacing the archive's (Controllers)lib/wine/x86_64-windows/winebus.sys 11.17 only: map-key fix, replacing the archive's (Controllers)lib/wine/x86_64-windows/ws2_32.dll 11.17 only: own host name without loopback, replacing the archive's (Own host name)-lib/libSDL2-2.0.0.dylib SDL 2.32.8, x86_64, for winebus.so (Controllers)+lib/libSDL2-2.0.0.dylib SDL 2.32.10, x86_64, for winebus.so (Controllers)```DXMT comes from `dxmt-e94c312.tar.gz` (the WineHQ engine's pin, shared download cache).@@ -138,9 +138,14 @@ NotProton installs `winebus-winecx-<build>.so`: that winecx tree's own, built wiSDL's bus then presents the pad as a gamepad (`is_gamepad 1`), the device XInput opens.dyld resolves the leaf name through the caller's `LC_RPATH`s, and `winebus.so` carries`@loader_path/../../` (the CI adds it to every unix module), so the library sits in `lib/`.-That `libSDL2-2.0.0.dylib` is the WineHQ engine runner's x86_64 SDL 2.32.8 (zlib license,-`NOTICE`), signed ad hoc and otherwise unchanged: a SwiftPM release build runs `strip` on-every unsigned Mach-O resource, which would change its bytes and break the pin. The PE half `winebus.sys` is unchanged: it starts the SDL bus+That `libSDL2-2.0.0.dylib` is SDL 2.32.10 (zlib license, `NOTICE`) with+`winemac-patch/sdl2-iokit-gamepad-collection.patch`, signed ad hoc: a SwiftPM release build+runs `strip` on every unsigned Mach-O resource, which would change its bytes and break the+pin. To rebuild it, apply the patch to the release tarball (strip the `/private/tmp/...`+prefix from its paths, `patch -p0`), then+`cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_OSX_ARCHITECTURES=x86_64 -DCMAKE_OSX_DEPLOYMENT_TARGET=11.0 -DSDL_STATIC=OFF -DSDL_TEST=OFF`,+build, and `codesign -fs -`. The result exports the same 837 symbols and links the same+frameworks as the 2.32.8 build it replaced. The PE half `winebus.sys` is unchanged: it starts the SDL buseither way, and only the unix half lacked it.A per-device `Hidraw=1` under `HKLM\System\CurrentControlSet\Services\winebus\Devices\<vid>/<pid>`