Skip to content

Commit

Permalink
misc: Flatten getGameWXID
Browse files Browse the repository at this point in the history
  • Loading branch information
sonic2kk committed Jun 9, 2024
1 parent 3827cda commit ba19355
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions steamtinkerlaunch
Original file line number Diff line number Diff line change
Expand Up @@ -13550,11 +13550,13 @@ function getGameWXID {

if [ -n "$GAMEWINXID" ]; then
writelog "INFO" "${FUNCNAME[0]} - Already have the windowid '$GAMEWINXID'"
else
GAMEWINPID="$(getGameWindowPID)"
writelog "INFO" "${FUNCNAME[0]} - Determining GAMEWINXID via GAMEWINPID '$GAMEWINPID'"
GAMEWINXID="$(getGameWinXIDFromPid "$GAMEWINPID")"
fi
return
fi

GAMEWINPID="$(getGameWindowPID)"
writelog "INFO" "${FUNCNAME[0]} - Determining GAMEWINXID via GAMEWINPID '$GAMEWINPID'"
GAMEWINXID="$(getGameWinXIDFromPid "$GAMEWINPID")"


if [ -n "$GAMEWINXID" ]; then
export VRPGWINXIS="$GAMEWINXID"
Expand Down

0 comments on commit ba19355

Please sign in to comment.