Skip to content

Free fork of NotProton: Windows Steam games in Mac Steam, on CodeWeavers' Wine and Apple's Game Porting Toolkit

Merge remote-tracking branch 'upstream/main' into integrate

raymondchins2763531bab51
diff --cc .github/workflows/app.yml
index 51bb3a8,fa19327..126520b
--- a/.github/workflows/app.yml
+++ b/.github/workflows/app.yml
@@@ -119,8 -119,8 +119,9 @@@ jobs
make -s routecheck
make -s bridgecheck
make -s gamedrivecheck
+ make -s launchercheck
make -s seedcheck
+ make -s gamefixescheck
- name: Run the Swift tests
run: make -s app-tests
diff --cc Makefile
index 95e7ada,ccb5d00..58c5823
--- a/Makefile
+++ b/Makefile
@@@ -64,8 -64,7 +64,8 @@@ DEPS := $(OBJS:.o=.d
tests-list overlay-shim overlay-shim-install overlay-shim-tests \
overlay-shim-bench iconmaker icon \
appinfo helpers-install ntdll-resolve bridge runcheck compatcheck \
- compatsvc-check scriptcheck envcheck buildcheck settingscheck routecheck bridgecheck gamedrivecheck launchercheck launch-shell FORCE
+ compatsvc-check scriptcheck envcheck buildcheck settingscheck routecheck bridgecheck gamedrivecheck \
- gamefixescheck launch-shell FORCE
++ gamefixescheck launchercheck launch-shell FORCE
APP_PAYLOAD := app/Sources/NotProtonApp/Resources/payload
@@@ -121,10 -120,10 +121,14 @@@ gamedrivecheck
@if [ ! -f dylib/tests/gamedrivecheck.sh ]; then $(call SKIP,gamedrivecheck,dylib/tests/gamedrivecheck.sh); exit 0; fi; \
sh dylib/tests/gamedrivecheck.sh dylib/feats/compat_run.sh
+gamefixescheck:
+ @if [ ! -f dylib/tests/gamefixescheck.sh ]; then $(call SKIP,gamefixescheck,dylib/tests/gamefixescheck.sh); exit 0; fi; \
+ sh dylib/tests/gamefixescheck.sh dylib/feats/compat_run.sh
+
+ launchercheck:
+ @if [ ! -f dylib/tests/launchercheck.sh ]; then $(call SKIP,launchercheck,dylib/tests/launchercheck.sh); exit 0; fi; \
+ sh dylib/tests/launchercheck.sh dylib/feats/compat_run.sh
+
# runcheck owns compat_run.sh, whose warnings wait for a change that can move
# the embedded __text baseline
SCRIPTS := $(shell git ls-files '*.sh' 2>/dev/null | grep -v '^dylib/feats/compat_run\.sh$$')
diff --cc README.md
index a8e353b,a31f0e5..0f926a7
--- a/README.md
+++ b/README.md
@@@ -36,34 -9,11 +36,36 @@@ This tool is intended to be used with S
20261006 or 2026082**. Both the FEX and the Rosetta versions are supported. I recommend using the FEX version of the
Preview 20261006, as it includes both the FEX version as well as the Rosetta one.
-I recommend going into Steam Settings - Compatibility and selecting the Rosetta version as your default compatibility tool, selecting FEX on a per game basis by right clicking a game in Steam, going into Properties - Compatibility and selecting FEX there.
+## Free Wine engine (no CrossOver needed)
+
+NotProton can also run entirely on free software. Under Compatibility Tool, **Download & Set Up**
+fetches the WineHQ 11.15 macOS build from [Gcenx/macOS_Wine_builds](https://github.com/Gcenx/macOS_Wine_builds)
+(hash pinned), unpacks it into `~/Library/Application Support/notproton/engines/` and sets the
+compatibility tool up from it exactly like a CrossOver copy. No CrossOver license is involved; the
+license check is skipped only for loaders whose hash pins the free build.
-**This project now has a brew cask.** For brew users, you can install via ``brew install --cask notprotonnot/notproton/notproton``
+11.15 is chosen because it is the Wine the bridge components (`lsteamclient`, `steam.exe`) are built
+against. Differences from CrossOver to be aware of:
+
+- It is an x86_64 build and runs under Rosetta 2, like the Rosetta build of CrossOver.
+- Direct3D 10/11 goes through [DXMT](https://github.com/3Shain/dxmt) (master `e94c312`, LGPL-2.1+,
+ see `docs/DXMT.md`), downloaded and pinned alongside Wine, which translates straight to Metal.
+ Wine's own wined3d cannot reach feature level 11 on macOS OpenGL. D3DMetal is Apple's and needs
+ CrossOver's Wine changes, so this engine does not use it; the WineCX engine can, with a Game
+ Porting Toolkit you supply (`docs/WINECX.md`).
+- DXMT needs macdrv functions upstream Wine hides; NotProton ships a rebuilt `winemac.so`
+ that exports them (see `winemac-patch/`).
+- D3D 12 has no fast path; vkd3d over the bundled MoltenVK is limited.
+- WineHQ has no msync/esync, so CPU-heavy games can run slower than under CrossOver or Sikarugir.
+- The graphics backend options in the Steam panel have no effect on this engine.
+
+To support another WineHQ build, run `ntdll-patch/resolve.py` against its Wine tree, build the
+payloads with `ntdll-patch/build.sh` / `build32.sh`, and add the hashes to `SupportedRunners`,
+`NtdllPatcher.byBuild` and `FreeEngine`.
+
- The macOS app itself is located in the ```app``` folder. The core logic is in ```dylib```.
++I recommend going into Steam Settings - Compatibility and selecting the Rosetta version as your default compatibility tool, selecting FEX on a per game basis by right clicking a game in Steam, going into Properties - Compatibility and selecting FEX there.
+
+ As far as the source structure goes, the macOS app itself is located in the ```app``` folder. The core logic is in ```dylib```.
```lsteamclient``` is a macOS port of Valve's lsteamclient. ```steam-shim```is a port of Valve's
steam-helper from Proton 9. ntdll-patch patches the copy of CrossOver that the app
makes/places in the ```~/Library/Application Support/notproton/runners/``` folder so that
diff --cc dylib/feats/compat_run.sh
index 6d585cb,7d5c6f4..bbadafd
--- a/dylib/feats/compat_run.sh
+++ b/dylib/feats/compat_run.sh
@@@ -2010,38 -1492,7 +2095,38 @@@ set --
lsregister="/System/Library/Frameworks/CoreServices.framework/Versions/A"
lsregister="$lsregister/Frameworks/LaunchServices.framework/Support/lsregister"
[ -x "$lsregister" ] && "$lsregister" -f "$loader_app" >> "$log" 2>&1 || true
-open -n -W -a "$loader_app" "$@" >> "$log" 2>&1 &
+if [ "${NOTPROTON_LAUNCH_SERVICES:-0}" = "1" ]; then
+ open -n -W -a "$loader_app" "$@" >> "$log" 2>&1 &
+else
+ # A bundle started by `open` is its own TCC responsible process, so every game
+ # needed a separate Input Monitoring grant before controllers worked. Started
+ # from here it stays attributed to Steam, which already holds that grant, and
+ # macOS still takes the Dock name and icon from the enclosing bundle. env -i
+ # with the same --env list keeps the environment `open` would have given it.
+ count=$#
+ i=0
+ mode=vars
+ while [ "$i" -lt "$count" ]; do
+ arg=$1
+ shift
+ i=$((i + 1))
+ case "$mode:$arg" in
+ vars:--env)
+ set -- "$@" "$1"
+ shift
+ i=$((i + 1))
+ ;;
+ vars:--args)
+ mode=args
- set -- "$@" "$loader_macos/launcher"
++ set -- "$@" "$loader_app/Contents/MacOS/launcher"
+ ;;
+ args:*) set -- "$@" "$arg" ;;
+ esac
+ done
+ echo "launching bundle directly so input permission stays with Steam" >> "$log" 2>&1 || true
+ env -i HOME="$HOME" USER="$USER" LOGNAME="$LOGNAME" SHELL="$SHELL" TMPDIR="$TMPDIR" \
+ __CF_USER_TEXT_ENCODING="$__CF_USER_TEXT_ENCODING" "$@" >> "$log" 2>&1 &
+fi
open_pid=$!
status=0
seen=0
diff --cc dylib/version.h
index ed864cc,b7a0ce3..a39ef4a
--- a/dylib/version.h
+++ b/dylib/version.h
@@@ -2,6 -2,6 +2,6 @@@
#ifndef NOTPROTON_VERSION_H
#define NOTPROTON_VERSION_H
- #define NOTPROTON_VERSION "1.1.4-winehq.1-ray.4"
-#define NOTPROTON_VERSION "1.1.5"
++#define NOTPROTON_VERSION "1.1.5-winehq.1-ray.5"
#endif // NOTPROTON_VERSION_H