Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- #
- # This has been developed and tested on a Steam Deck running Fedora Workstation 38
- # To run this, you HAVE to install the latest version of Wine (8.12 as of writing) and Winetricks
- # Also, consider following this guide: https://www.gloriouseggroll.tv/how-to-get-out-of-wine-dependency-hell/
- #
- set -e
- # Head into the game's directory
- GAME_DIR=`dirname "${BASH_SOURCE[@]}"`
- cd "$GAME_DIR"
- # Setup environment variables
- export WINEPREFIX="$PWD/prefix"
- export DXVK_LOG_LEVEL=none
- export WINEDEBUG="-all"
- export PIPEWIRE_LATENCY=9600/48000
- export PULSE_LATENCY_MSEC=60
- # Make sure a Wine prefix has been created
- if [ ! -e "$WINEPREFIX" ]; then
- echo ':: Creating new Wine prefix'
- # Create a new prefix
- mkdir -p "$WINEPREFIX"
- wine wineboot
- # Prevent Wine from creating application entries
- wine reg add 'HKCU\Software\Wine\DllOverrides' /v 'winemenubuilder.exe' /d ''
- echo ':: Applying game fixes'
- # Fix cutscenes
- winetricks -q wmp9
- winetricks -q quartz
- winetricks -q devenum
- # Fix missing or incomplete D3D libraries
- winetricks -q d3dx11_43
- winetricks -q d3dcompiler_43
- # Fix sound effects
- winetricks -q xact
- # Switch DX translation to DXVK which yields much better results
- winetricks -q dxvk
- fi
- # Start the game and wait for it to terminate
- wine P4G.exe
- exec wineserver -w
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement