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
Fix legacy games that load steam.dll
NotProtonNot0c02b7d0822b
diff --git a/dylib/feats/compat_run.sh b/dylib/feats/compat_run.shindex a2b0dec..d7ef1ef 100755--- a/dylib/feats/compat_run.sh+++ b/dylib/feats/compat_run.sh@@ -336,6 +336,19 @@ install_lsteamclient_trigger() {fi}+# A fix to match Proton+install_legacy_steam_dll() {+ src="$bridge_src/legacycompat/Steam.dll"+ dst="$WINEPREFIX/drive_c/windows/syswow64/Steam.dll"+ [ -f "$src" ] && [ -d "$WINEPREFIX/drive_c/windows/syswow64" ] || return 0+ cmp -s "$src" "$dst" && return 0+ if cp -f "$src" "$dst"; then+ echo "=== installed legacy Steam.dll ===" >> "$log" 2>&1 || true+ else+ echo "=== could not install the legacy Steam.dll ===" >> "$log" 2>&1 || true+ fi+}+# Steam runs a Windows game's installscript.vdf by invoking the standalone# evaluator through the compat tool, the same way the linux client does, but# the binaries are missing on macOS, so...@@ -353,16 +366,6 @@ install_legacycompat() {done}-link_legacy_steam_dll() {- src="$STEAM_COMPAT_CLIENT_INSTALL_PATH/legacycompat/Steam.dll"- [ -n "$STEAM_COMPAT_INSTALL_PATH" ] && [ -f "$src" ] || return 0- dst="$(dirname "$STEAM_COMPAT_INSTALL_PATH")/Steam.dll"- [ -L "$dst" ] || [ ! -e "$dst" ] || return 0- [ "$(readlink "$dst" 2>/dev/null)" = "$src" ] && return 0- ln -sfn "$src" "$dst" && \- echo "=== linked legacy Steam.dll ===" >> "$log" 2>&1-}-bridge_files="steamclient64.dll steamclient.dll tier0_s64.dll vstdlib_s64.dll"bridge_files="$bridge_files lsteamclient.dll lsteamclient.so steam.exe"if [ -d "$bridge_src" ] && [ -n "$WINEPREFIX" ]; then@@ -389,6 +392,7 @@ if [ -d "$bridge_src" ] && [ -n "$WINEPREFIX" ]; thendoneverify_runnerinstall_lsteamclient_trigger+ install_legacy_steam_dllexport WINEDLLPATH="$prefix_steam:$WINEDLLPATH"export WINEDLLOVERRIDES="steamclient=n;steamclient64=n;lsteamclient=b"native_client="$STEAM_COMPAT_CLIENT_INSTALL_PATH"@@ -397,7 +401,6 @@ if [ -d "$bridge_src" ] && [ -n "$WINEPREFIX" ]; thenexport STEAM_COMPAT_CLIENT_INSTALL_PATH="$native_client"fiinstall_legacycompat- link_legacy_steam_dllecho "=== bridge staged into $prefix_steam ===" >> "$log" 2>&1 || trueecho "WINEDLLPATH=$WINEDLLPATH" >> "$log" 2>&1 || trueecho "STEAM_COMPAT_CLIENT_INSTALL_PATH=$STEAM_COMPAT_CLIENT_INSTALL_PATH" >> "$log" 2>&1 || truediff --git a/dylib/version.h b/dylib/version.hindex 55c9ba0..47ffc87 100644--- a/dylib/version.h+++ b/dylib/version.h@@ -2,6 +2,6 @@#ifndef NOTPROTON_VERSION_H#define NOTPROTON_VERSION_H-#define NOTPROTON_VERSION "1.0.0"+#define NOTPROTON_VERSION "1.0.1"#endif // NOTPROTON_VERSION_H