Skip to content

Commit

Permalink
Allow Steam Linux Runtime for Non-Steam Games (#773)
Browse files Browse the repository at this point in the history
  • Loading branch information
sonic2kk authored Apr 11, 2023
1 parent fa19006 commit 294c7f0
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion steamtinkerlaunch
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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" "$@")"
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
}

Expand Down

0 comments on commit 294c7f0

Please sign in to comment.