diff --git a/README.md b/README.md index 4cab363..ee56758 100755 --- a/README.md +++ b/README.md @@ -31,9 +31,9 @@ When you use `gamelauncher.sh` to run a game, it uses the specified WINEPREFIX, # HOW DO I USE IT? Usage: - `WINEPREFIX=/path-to-prefix ./gamelauncher.sh ` + `WINEPREFIX=/path-to-prefix GAMEID=makeoneup ./gamelauncher.sh ` Ex: - `WINEPREFIX=$HOME/Games/epic-games-store ./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"` + `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"` # WHAT DOES THIS MEAN FOR OTHER LAUNCHERS (lutris/bottles/heroic/legendary,etc): diff --git a/gamelauncher.sh b/gamelauncher.sh index 5c8b709..09993a0 100755 --- a/gamelauncher.sh +++ b/gamelauncher.sh @@ -2,9 +2,9 @@ set -x -if [[ -z $1 ]] || [[ -z $2 ]] || [[ -z $WINEPREFIX ]]; then - echo "Usage: WINEPREFIX=/path-to-prefix ./gamelauncher.sh " - echo 'Ex: WINEPREFIX=$HOME/Games/epic-games-store ./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 ]]; 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"' exit 1 fi if [[ $WINEPREFIX ]]; then @@ -15,7 +15,7 @@ if [[ $WINEPREFIX ]]; then touch "$WINEPREFIX"/tracked_files fi export PROTONPATH="$1" -export STEAM_COMPAT_APP_ID='egs' +export STEAM_COMPAT_APP_ID="$GAMEID" export SteamAppId="$STEAM_COMPAT_APP_ID" export STEAM_COMPAT_TOOL_PATHS='' export STEAM_COMPAT_LIBRARY_PATHS=''