make gamelauncher: make sure the user specifies a game id. this will be used in protonfixes

This commit is contained in:
GloriousEggroll 2024-01-21 05:15:24 -07:00
parent 7214f4f358
commit e8f1389e1b
2 changed files with 6 additions and 6 deletions

View File

@ -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 <proton-path> <executable-path> <arguements>`
`WINEPREFIX=/path-to-prefix GAMEID=makeoneup ./gamelauncher.sh <proton-path> <executable-path> <arguements>`
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):

View File

@ -2,9 +2,9 @@
set -x
if [[ -z $1 ]] || [[ -z $2 ]] || [[ -z $WINEPREFIX ]]; then
echo "Usage: WINEPREFIX=/path-to-prefix ./gamelauncher.sh <proton-path> <executable-path> <arguements>"
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 <proton-path> <executable-path> <arguements>"
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=''