dont make these files if they already exist

This commit is contained in:
GloriousEggroll 2024-01-28 20:30:55 -07:00
parent 79dd327fbd
commit 3458c21989

View File

@ -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