Skip to content

Commit

Permalink
Wait Requester: Add some additional logging
Browse files Browse the repository at this point in the history
Should help troubleshooting #1138.
  • Loading branch information
sonic2kk committed Jul 11, 2024
1 parent 144347b commit b48b32f
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions steamtinkerlaunch
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit b48b32f

Please sign in to comment.