mirror of
https://github.com/tcsenpai/UWINE.git
synced 2025-06-07 12:05:21 +00:00
set proton version path as an envvar instead of a gamelauncher.sh arguement
This commit is contained in:
parent
2815802f8b
commit
3fffd1ad06
@ -2,9 +2,10 @@
|
|||||||
|
|
||||||
set -x
|
set -x
|
||||||
|
|
||||||
if [[ -z $1 ]] || [[ -z $2 ]] || [[ -z $WINEPREFIX ]] || [[ -z $GAMEID ]]; then
|
if [[ -z $1 ]] || [[ -z $2 ]] || [[ -z $WINEPREFIX ]] || [[ -z $GAMEID ]] || [[ -z $PROTONPATH ]]; then
|
||||||
echo "Usage: WINEPREFIX=/path-to-prefix GAMEID=makeoneup ./gamelauncher.sh <proton-path> <executable-path> <arguements>"
|
echo "Usage: WINEPREFIX=/path-to-prefix GAMEID=makeoneup PROTONPATH=<protonpath> ./gamelauncher.sh <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"'
|
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
|
exit 1
|
||||||
fi
|
fi
|
||||||
if [[ $WINEPREFIX ]]; then
|
if [[ $WINEPREFIX ]]; then
|
||||||
@ -14,7 +15,7 @@ if [[ $WINEPREFIX ]]; then
|
|||||||
ln -s "$WINEPREFIX" "$WINEPREFIX"/pfx
|
ln -s "$WINEPREFIX" "$WINEPREFIX"/pfx
|
||||||
touch "$WINEPREFIX"/tracked_files
|
touch "$WINEPREFIX"/tracked_files
|
||||||
fi
|
fi
|
||||||
export PROTONPATH="$1"
|
export PROTONPATH="$PROTONPATH"
|
||||||
export STEAM_COMPAT_APP_ID="$GAMEID"
|
export STEAM_COMPAT_APP_ID="$GAMEID"
|
||||||
export SteamAppId="$STEAM_COMPAT_APP_ID"
|
export SteamAppId="$STEAM_COMPAT_APP_ID"
|
||||||
export STEAM_COMPAT_TOOL_PATHS=''
|
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 PROTON_CRASH_REPORT_DIR='/tmp/ULWGL_crashreports'
|
||||||
export FONTCONFIG_PATH=''
|
export FONTCONFIG_PATH=''
|
||||||
|
|
||||||
export EXE="$2"
|
export EXE="$1"
|
||||||
shift 2
|
shift 1
|
||||||
export LAUNCHARGS="$@"
|
export LAUNCHARGS="$@"
|
||||||
me="$(readlink -f "$0")"
|
me="$(readlink -f "$0")"
|
||||||
here="${me%/*}"
|
here="${me%/*}"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user