From 3fffd1ad06b38c8a85b6a3efd47bd0e0e076d0a6 Mon Sep 17 00:00:00 2001 From: GloriousEggroll Date: Wed, 24 Jan 2024 04:09:59 -0700 Subject: [PATCH] set proton version path as an envvar instead of a gamelauncher.sh arguement --- gamelauncher.sh | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/gamelauncher.sh b/gamelauncher.sh index 4c05d0f..bfb724b 100755 --- a/gamelauncher.sh +++ b/gamelauncher.sh @@ -2,9 +2,10 @@ set -x -if [[ -z $1 ]] || [[ -z $2 ]] || [[ -z $WINEPREFIX ]] || [[ -z $GAMEID ]]; then - echo "Usage: WINEPREFIX=/path-to-prefix GAMEID=makeoneup ./gamelauncher.sh " - echo 'Ex: WINEPREFIX=$HOME/Games/epic-games-store GAMEID=egs ./gamelauncher.sh "$HOME/.steam/steam/compatibilitytools.d/GE-Proton8-28" "$HOME/Games/epic-games-store/drive_c/Program Files (x86)/Epic Games/Launcher/Portal/Binaries/Win32/EpicGamesLauncher.exe" "-opengl -SkipBuildPatchPrereq"' +if [[ -z $1 ]] || [[ -z $2 ]] || [[ -z $WINEPREFIX ]] || [[ -z $GAMEID ]] || [[ -z $PROTONPATH ]]; then + echo "Usage: WINEPREFIX=/path-to-prefix GAMEID=makeoneup PROTONPATH= ./gamelauncher.sh " + echo 'Ex:' + echo 'WINEPREFIX=$HOME/Games/epic-games-store GAMEID=egs PROTONPATH="$HOME/.steam/steam/compatibilitytools.d/GE-Proton8-28" ./gamelauncher.sh "$HOME/Games/epic-games-store/drive_c/Program Files (x86)/Epic Games/Launcher/Portal/Binaries/Win32/EpicGamesLauncher.exe" "-opengl -SkipBuildPatchPrereq"' exit 1 fi if [[ $WINEPREFIX ]]; then @@ -14,7 +15,7 @@ if [[ $WINEPREFIX ]]; then ln -s "$WINEPREFIX" "$WINEPREFIX"/pfx touch "$WINEPREFIX"/tracked_files fi -export PROTONPATH="$1" +export PROTONPATH="$PROTONPATH" export STEAM_COMPAT_APP_ID="$GAMEID" export SteamAppId="$STEAM_COMPAT_APP_ID" export STEAM_COMPAT_TOOL_PATHS='' @@ -28,8 +29,8 @@ export STEAM_COMPAT_SHADER_PATH="$STEAM_COMPAT_DATA_PATH"/shadercache export PROTON_CRASH_REPORT_DIR='/tmp/ULWGL_crashreports' export FONTCONFIG_PATH='' -export EXE="$2" -shift 2 +export EXE="$1" +shift 1 export LAUNCHARGS="$@" me="$(readlink -f "$0")" here="${me%/*}"