Advertisement
Guest User

NoSteam Persona 4 Golden on Wine

a guest
Jul 25th, 2023
579
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.38 KB | Gaming | 0 0
  1. #!/bin/bash
  2.  
  3. #
  4. # This has been developed and tested on a Steam Deck running Fedora Workstation 38
  5. # To run this, you HAVE to install the latest version of Wine (8.12 as of writing) and Winetricks
  6. # Also, consider following this guide: https://www.gloriouseggroll.tv/how-to-get-out-of-wine-dependency-hell/
  7. #
  8.  
  9. set -e
  10.  
  11. # Head into the game's directory
  12. GAME_DIR=`dirname "${BASH_SOURCE[@]}"`
  13. cd "$GAME_DIR"
  14.  
  15. # Setup environment variables
  16. export WINEPREFIX="$PWD/prefix"
  17. export DXVK_LOG_LEVEL=none
  18. export WINEDEBUG="-all"
  19. export PIPEWIRE_LATENCY=9600/48000
  20. export PULSE_LATENCY_MSEC=60
  21.  
  22. # Make sure a Wine prefix has been created
  23. if [ ! -e "$WINEPREFIX" ]; then
  24.     echo ':: Creating new Wine prefix'
  25.  
  26.     # Create a new prefix
  27.     mkdir -p "$WINEPREFIX"
  28.     wine wineboot
  29.  
  30.     # Prevent Wine from creating application entries
  31.     wine reg add 'HKCU\Software\Wine\DllOverrides' /v 'winemenubuilder.exe' /d ''
  32.  
  33.     echo ':: Applying game fixes'
  34.  
  35.     # Fix cutscenes
  36.     winetricks -q wmp9
  37.     winetricks -q quartz
  38.     winetricks -q devenum
  39.  
  40.     # Fix missing or incomplete D3D libraries
  41.     winetricks -q d3dx11_43
  42.     winetricks -q d3dcompiler_43
  43.  
  44.     # Fix sound effects
  45.     winetricks -q xact
  46.  
  47.     # Switch DX translation to DXVK which yields much better results
  48.     winetricks -q dxvk
  49. fi
  50.  
  51. # Start the game and wait for it to terminate
  52. wine P4G.exe
  53. exec wineserver -w
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement