Advertisement
Guest User

/usr/bin/protonify

a guest
Feb 14th, 2021
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.73 KB | None | 0 0
  1. #!/bin/bash
  2. PROTON_VERSION="- Experimental"
  3. PROTON_DIR="$HOME/.steam/steam/steamapps/common/Proton $PROTON_VERSION"
  4. RUNNING="$@"
  5. if [ ! -f "$PROTON_DIR/proton" ] ; then
  6.     echo "Proton version $PROTON_VERSION not found!";
  7.     exit
  8. fi
  9.  
  10. if [ ! -f "$1" ] ; then
  11.     echo "$1 does not exist!";
  12.     exit
  13. fi
  14.  
  15. printf "Proton \($PROTON_VERSION\) script found at\n$PROTON_DIR/proton\n\n"
  16. printf "Now running\n$PWD/$RUNNING\n"
  17.  
  18. export STEAM_COMPAT_DATA_PATH="/home/parzival/.steam/debian-installation/steamapps/compatdata"
  19. export MOUNT_PATH="/media/parzival/proton"
  20.  
  21. export PROTON_USE_WINED3D11=1
  22. #export PROTON_NO_ESYNC=1
  23. PROTON_USE_WINED3D11=1 \
  24. #PROTON_NO_D3D11=1 \
  25. #PROTON_NO_ESYNC=1 \
  26. "$PROTON_DIR/proton" run "$@"
  27.  
  28. exit 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement