From 294c7f0c0cc89ca46b0a7d88ad143871402f680e Mon Sep 17 00:00:00 2001 From: Eamonn Rea Date: Tue, 11 Apr 2023 20:46:15 +0100 Subject: [PATCH] Allow Steam Linux Runtime for Non-Steam Games (#773) --- steamtinkerlaunch | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/steamtinkerlaunch b/steamtinkerlaunch index 280b86ed..42eaab01 100755 --- a/steamtinkerlaunch +++ b/steamtinkerlaunch @@ -6,7 +6,7 @@ PREFIX="/usr" PROGNAME="SteamTinkerLaunch" NICEPROGNAME="Steam Tinker Launch" -PROGVERS="v14.0.20230408-1" +PROGVERS="v14.0.20230412-1" PROGCMD="${0##*/}" SHOSTL="stl" GHURL="https://github.com" @@ -2177,6 +2177,11 @@ function setCustomGameVars { GFD="$EFD" GN="$GE" + # Allows custom programs to use SLR and force it from the toolmanifest -- May not be a good idea but ¯\_(ツ)_/¯ + # TODO allow SLR for custom programs? + USESLR=1 + HAVESLR=0 + while read -r ORGARG; do mapfile -t -O "${#ORGGCMD[@]}" ORGGCMD <<< "$ORGARG" done <<< "$(printf "%s\n" "$@")" @@ -19017,6 +19022,7 @@ function setSLRReap { NATIVE_SLRCMD=("") # Pressure Vessel Funtime 2nd Edition Ver. 2.31 + writelog "INFO" "${FUNCNAME[0]} - Now executing Pressure Vessel Funtime 2nd Edition Ver. 2.31" # Get SLR Paths if [ "$ISGAME" -eq 3 ]; then # Native games already have a hardcoded initial native SLR AppID, so we can get the path from this hardcoded AppID @@ -19076,6 +19082,8 @@ function setSLRReap { if [ -n "${SLRCMD[0]}" ]; then writelog "INFO" "${FUNCNAME[0]} - Adding SLR '${SLRCMD[*]}' to the launch command" fi + else + writelog "INFO" "${FUNCNAME[0]} - USESLR and HAVESLR not defined -- Probably shouldn't happen?" fi }