Skip to content

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

feat(gamefixes): allow ROSETTA_ADVERTISE_AVX; enable it for The Last of Us Part I

raymondchins9ef13ee39d62
diff --git a/docs/GAMEFIXES.md b/docs/GAMEFIXES.md
index 0682104..86e9833 100644
--- a/docs/GAMEFIXES.md
+++ b/docs/GAMEFIXES.md
@@ -21,6 +21,7 @@ logged, when:
| Key | Values | Effect |
| --- | --- | --- |
| `BACKEND` | `dxmt`, `dxvk`, `wined3d`, `d3dmetal` | Graphics backend, see below |
+| `ROSETTA_ADVERTISE_AVX` | `1` makes Rosetta report AVX/AVX2 to the game (needed by AVX-only titles) |
| `ARGS` | space-separated arguments of `A-Za-z0-9_+./:=,-` | Added to the game's command line after the launch options' own arguments. Ignored for installers and other helpers |
| `DLLOVERRIDES` | Wine syntax, e.g. `dinput8=n,b;xinput1_3=n` | Added to `WINEDLLOVERRIDES` after the backend's entries and before the launch options' |
| `MSYNC` | `0`, `1` | `1` turns msync on when the engine supports it; `0` turns it off |
diff --git a/dylib/feats/compat_run.sh b/dylib/feats/compat_run.sh
index 59506d6..8ac24a1 100755
--- a/dylib/feats/compat_run.sh
+++ b/dylib/feats/compat_run.sh
@@ -193,6 +193,8 @@ gamefix_reason() {
# Space-separated arguments, each of A-Za-z0-9_+./:=,- only, so none can glob or quote.
case "$2" in *[!A-Za-z0-9_+./:=,\ -]*) echo "an argument with characters outside A-Za-z0-9_+./:=,-" ;; esac ;;
MTL_HUD_ENABLED|WINEDEBUG|WINE_LARGE_ADDRESS_AWARE|WINE_CPU_TOPOLOGY) ;;
+ ROSETTA_ADVERTISE_AVX)
+ case "$2" in 0|1) ;; *) echo "not 0 or 1" ;; esac ;;
DXMT_?*|DXVK_?*|MVK_?*|VKD3D_?*|D3DM_?*|STAGING_?*) ;;
*) echo "not on the allow-list" ;;
esac
diff --git a/gamefixes/1888930.conf b/gamefixes/1888930.conf
index be9591d..47a4c18 100644
--- a/gamefixes/1888930.conf
+++ b/gamefixes/1888930.conf
@@ -2,3 +2,7 @@
# Evidence: PCGamingWiki lists Direct3D 12 as the only Direct3D version (https://www.pcgamingwiki.com/wiki/The_Last_of_Us_Part_I).
# Route D3D12 through wined3d (vkd3d); prefer BACKEND=d3dmetal once that engine ships.
BACKEND=wined3d
+# Rosetta hides AVX/AVX2 by default; the game log stops right after its CPU feature probe
+# (2026-10-09: "Features: mmx, sse ... cmpxchg16b", no avx), then exits. Rosetta exposes AVX when
+# ROSETTA_ADVERTISE_AVX=1 (https://developer.apple.com/forums/thread/769486).
+ROSETTA_ADVERTISE_AVX=1