From b48b32f91d15de5ef35b1749ef6f35d999bb7916 Mon Sep 17 00:00:00 2001 From: Eamonn Rea Date: Thu, 11 Jul 2024 17:30:37 +0100 Subject: [PATCH] Wait Requester: Add some additional logging Should help troubleshooting #1138. --- steamtinkerlaunch | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/steamtinkerlaunch b/steamtinkerlaunch index d5084cb3..09641596 100755 --- a/steamtinkerlaunch +++ b/steamtinkerlaunch @@ -7,7 +7,7 @@ PREFIX="/usr" PROGNAME="SteamTinkerLaunch" NICEPROGNAME="Steam Tinker Launch" -PROGVERS="v14.0.20240624-1" +PROGVERS="v14.0.20240712-1" PROGCMD="${0##*/}" PROGINTERNALPROTNAME="Proton-stl" SHOSTL="stl" @@ -10734,14 +10734,24 @@ function askSettings { --timeout-indicator=top \ "$GEOM" - case $? in + WAITREQRESULT=$? + + writelog "INFO" "${FUNCNAME[0]} - Wait Requester result was '$WAITREQRESULT'" + + case $WAITREQRESULT in 0) { + writelog "INFO" "${FUNCNAME[0]} - Selected $REQBUT - Starting $SETMENU" "$LAUNCHMENU" "$AID" } ;; - 1) writelog "INFO" "${FUNCNAME[0]} - Selected CANCEL - Starting game without opening the $SETMENU" + 1) writelog "INFO" "${FUNCNAME[0]} - Selected $BUT_SKIP - Starting game without opening the $SETMENU" editorSkipped ;; 70) writelog "INFO" "${FUNCNAME[0]} - TIMEOUT - Starting game without opening the $SETMENU" ;; + *) { + writelog "WARN" "${FUNCNAME[0]} - Wait Requester returned unknown exit code '${WAITREQRESULT}' - Defaulting to opening the $SETMENU" + "$LAUNCHMENU" "$AID" + } + ;; esac fi fi