From ba19355ee472a8c77025d565daa9e3719df49bf1 Mon Sep 17 00:00:00 2001 From: Eamonn Rea Date: Sun, 9 Jun 2024 05:45:06 +0100 Subject: [PATCH] misc: Flatten getGameWXID --- steamtinkerlaunch | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/steamtinkerlaunch b/steamtinkerlaunch index ab296ad6..6d7f088e 100755 --- a/steamtinkerlaunch +++ b/steamtinkerlaunch @@ -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"