Skip to content

Commit

Permalink
misc: Flatten checkFWS
Browse files Browse the repository at this point in the history
  • Loading branch information
sonic2kk committed Jun 9, 2024
1 parent 6f03fe9 commit 025ab58
Showing 1 changed file with 16 additions and 10 deletions.
26 changes: 16 additions & 10 deletions steamtinkerlaunch
Original file line number Diff line number Diff line change
Expand Up @@ -13886,17 +13886,23 @@ function dlFWS {
}

function checkFWS {
if [ "$USEFWS" -eq 1 ]; then
dlFWS
if [ "$USEFWS" -eq 1 ]; then
writelog "INFO" "${FUNCNAME[0]} - 'USEFWS' is enabled - starting '$FWS' exe '$FWSEXE'"
setFWSArch
writelog "INFO" "${FUNCNAME[0]} - Starting '$FWSEXE' forked into the background"
restoreOrgVars
(sleep 5; "$RUNPROTON" run "$FWSEXE") &
emptyVars "O" "X"
fi
if [ "$USEFWS" -eq 0 ]; then
return
fi

dlFWS
if [ "$USEFWS" -eq 0 ]; then
return
fi

writelog "INFO" "${FUNCNAME[0]} - 'USEFWS' is enabled - starting '$FWS' exe '$FWSEXE'"
setFWSArch

writelog "INFO" "${FUNCNAME[0]} - Starting '$FWSEXE' forked into the background"
restoreOrgVars

(sleep 5; "$RUNPROTON" run "$FWSEXE") &
emptyVars "O" "X"
}

function togWindows {
Expand Down

0 comments on commit 025ab58

Please sign in to comment.