mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-12-06 04:55:44 +00:00
feat(bionic): D7VK for 32-bit Direct3D 7 and older games (PROTON_USE_D7VK)
As in DroidDeck-Proton: with PROTON_USE_D7VK set and not 0, the prefix's syswow64 ddraw.dll is D7VK's and Wine's own sits beside it as ddraw_.dll, with ddraw=n,b; unset again, Wine's link comes back. Only the prefix links change. The ddraw.dll is the one DroidDeck-Proton 11-12.8 ships (WinterSnowfall/d7vk 06656b9e, sha256 pinned), taken from that release's archive at build time; credited in NOTICE. PROTON_USE_D7VK now passes the launcher's environment filter.
This commit is contained in:
1 parent
536a05e06c
commit
58125fc723
3 files changed
+33
No files matched your search
@@ -32,6 +32,7 @@ for v in $(env | sed -n 's/^\([A-Za-z_][A-Za-z0-9_]*\)=.*/\1/p'); do
|
||||
TU_DEBUG|MESA_NO_ERROR|DXVK_CONFIG|DXVK_HUD|DROIDDECK_FORCE_SSBS) ;;
|
||||
mesa_glthread|vblank_mode|ZINK_*|GALLIUM_HUD) ;;
|
||||
BL_SYNC|BL_FSYNC_FIRST|BL_SYNC_FALLBACK|PROTON_NO_ESYNC|PROTON_NO_FSYNC|PROTON_NO_NTSYNC|WINEESYNC) ;;
|
||||
PROTON_USE_D7VK) ;;
|
||||
*) unset "$v" 2>/dev/null ;;
|
||||
esac
|
||||
done
|
||||
@@ -203,6 +204,21 @@ fi
|
||||
prefix_busy || rm -f "$NTSYNC_SHM".v*
|
||||
|
||||
prepare_prefix
|
||||
|
||||
# D7VK (Direct3D 7 and older on Vulkan) for 32-bit games when PROTON_USE_D7VK is set and not 0, as DroidDeck-Proton:
|
||||
# its ddraw.dll in syswow64 with Wine's own beside it as ddraw_.dll. Switched off, Wine's link goes back. Only the
|
||||
# links in the prefix are removed, never the files they point to.
|
||||
S=$COMPAT/pfx/drive_c/windows/syswow64
|
||||
if [ -n "${PROTON_USE_D7VK:-}" ] && [ "$PROTON_USE_D7VK" != 0 ] && [ -f "$PACK/d7vk/ddraw.dll" ]; then
|
||||
rm -f "$S/ddraw.dll" "$S/ddraw_.dll"
|
||||
ln -s "$PACK/d7vk/ddraw.dll" "$S/ddraw.dll" && ln -s "$F/lib/wine/i386-windows/ddraw.dll" "$S/ddraw_.dll"
|
||||
export WINEDLLOVERRIDES="$WINEDLLOVERRIDES;ddraw=n,b"
|
||||
echo "$(date +%H:%M:%S) D7VK on (32-bit ddraw)"
|
||||
elif [ -L "$S/ddraw_.dll" ] || [ -e "$S/ddraw_.dll" ]; then
|
||||
rm -f "$S/ddraw.dll" "$S/ddraw_.dll"
|
||||
ln -s "$F/lib/wine/i386-windows/ddraw.dll" "$S/ddraw.dll"
|
||||
echo "$(date +%H:%M:%S) D7VK off: Wine's ddraw again"
|
||||
fi
|
||||
cd "$(dirname "$EXE")" || exit 1
|
||||
|
||||
if [ "$verb" = runinprefix ]; then
|
||||
|
||||
Reference in new issue
Block a user