From 3458c21989f58cf0f82b9cf5da2ab1fea1281bcd Mon Sep 17 00:00:00 2001 From: GloriousEggroll Date: Sun, 28 Jan 2024 20:30:55 -0700 Subject: [PATCH] dont make these files if they already exist --- gamelauncher.sh | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/gamelauncher.sh b/gamelauncher.sh index d74f743..5b309fd 100755 --- a/gamelauncher.sh +++ b/gamelauncher.sh @@ -12,8 +12,12 @@ if [[ $WINEPREFIX ]]; then if [[ ! -d "$WINEPREFIX" ]]; then mkdir -p "$WINEPREFIX" fi - ln -s "$WINEPREFIX" "$WINEPREFIX"/pfx - touch "$WINEPREFIX"/tracked_files + if [[ ! -d "$WINEPREFIX"/pfx ]]; then + ln -s "$WINEPREFIX" "$WINEPREFIX"/pfx + fi + if [[ ! -f "$WINEPREFIX"/tracked_files ]]; then + touch "$WINEPREFIX"/tracked_files + fi fi export PROTONPATH="$PROTONPATH" export ULWGL_ID="$GAMEID" @@ -81,3 +85,6 @@ export STEAM_COMPAT_MOUNTS="$PROTONPATH:$here" $here/ULWGL --verb=waitforexitandrun -- "$PROTONPATH"/proton "$PROTON_VERB" "$EXE" "$@" +# Kill wineserver andpressure vessel in case of lingering processes +killall -9 wineserver +killall -9 pressure-vessel-adverb