Skip to content

Commit

Permalink
misc: trim whitespaces
Browse files Browse the repository at this point in the history
Was overdue, meant to do it in #1121 but forgot.
  • Loading branch information
sonic2kk committed Jun 9, 2024
1 parent 50ff914 commit 28c9858
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 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.20240609-1"
PROGVERS="v14.0.20240609-3"
PROGCMD="${0##*/}"
PROGINTERNALPROTNAME="Proton-stl"
SHOSTL="stl"
Expand Down Expand Up @@ -7107,7 +7107,7 @@ function extProtonRun {
mapfile -d " " -t -O "${#TMP_RUNPROGARGS[@]}" TMP_RUNPROGARGS < <( printf "%q" "$PROGARGS" )

# Basically check for and join paths that contain spaces because above mapfile will strip them
# TODO: This does NOT work with paths that use forward slashes
# TODO: This does NOT work with paths that use forward slashes
for i in "${!TMP_RUNPROGARGS[@]}"; do
# Remove trailing backslash, i.e. turn `--launch\` into `--launch`
TMP_RUNPROGARGS[i]="${TMP_RUNPROGARGS[i]%\\}"
Expand All @@ -7122,7 +7122,7 @@ function extProtonRun {
if [[ $LASTRUNPROGARG = *"\\" ]]; then
# Remove 'i-1' (previous element), because 'i' (current element) will contain 'i-1'
unset "TMP_RUNPROGARGS[i-1]"
TMP_RUNPROGARGS[i]="${LASTRUNPROGARG} ${TMP_RUNPROGARGS[i]}"
TMP_RUNPROGARGS[i]="${LASTRUNPROGARG} ${TMP_RUNPROGARGS[i]}"
fi
LASTRUNPROGARG="${TMP_RUNPROGARGS[i]}"
done
Expand Down Expand Up @@ -9623,7 +9623,7 @@ function installRSdll {
function installReshade {
if [ "$USERESHADE" -eq 1 ]; then
prepareReshadeFiles
setShadDestDir # Have to use setShadDestDir because setShadDest will use ABSGAMEEXEPATH which is not Custom Command
setShadDestDir # Have to use setShadDestDir because setShadDest will use ABSGAMEEXEPATH which is not Custom Command

INSTDESTDIR="$SHADDESTDIR"

Expand Down Expand Up @@ -18393,8 +18393,8 @@ function checkIntDeps {
writelog "ERROR" "${FUNCNAME[0]} - Yad dependency ('$YAD') was not found! Check '${PROGCMD} --help' for alternatives and/or read '$PROJECTPAGE/wiki/Yad'" "E"
notiShow "$(strFix "$NOTY_NOTFOUND" "$YAD")"
fi


if [ ! -x "$(command -v "steam")" ] && [ "$INFLATPAK" -eq 0 ]; then
DEPSMISSING=1
echo "ERROR" "Steam not found"
Expand Down Expand Up @@ -23868,7 +23868,7 @@ function createVdfEntry {
NEWBLOCKNAME="$( safequoteVdfBlockName "$3" )" # Name of new block, e.g. "<AppID>"
POSITION="${4:-bottom}" # POSITION to insert into, can be either top/bottom -- Bottom by default
INDENT="$5" # Indent that PARENTBLOCKNAME is at (0 = top of file)
CHECKDUPLICATES="${6:-1}" # Flag to check for duplicate section names
CHECKDUPLICATES="${6:-1}" # Flag to check for duplicate section names

# If no indent is given, guess the indent, otherwise use the specified one
# -------
Expand Down Expand Up @@ -24095,7 +24095,7 @@ function updateLocalConfigAppsValue {
LCVAID="$1" # AppID for section name, i.e. '"-1123145"' (must be signed 32bit integer)
LCVKEYNAME="$2" # Key to write into section, i.e. '"OverlayAppEnable"'
LCVKEYVAL="$3" # Value to assign to key, i.e. '"1"'

# This part in particular may need reworked if/when we add the option to select a Steam User
if [ ! -f "$FLCV" ]; then
writelog "WARN" "${FUNCNAME[0]} - No localconfig.vdf found at '${FLCV}' -- Nothing to do."
Expand All @@ -24113,7 +24113,7 @@ function updateLocalConfigAppsValue {
writelog "INFO" "${FUNCNAME[0]} - localconfig.vdf already has 'Apps' section, nothing to do"
fi

# Next we need to check if the given AppID
# Next we need to check if the given AppID
FLCVAPPAID="$( getNestedVdfSection "Apps/${LCVAID}" "1" "$FLCV" )"
if ! grep -q -- "$LCVAID" <<< "$FLCVAPPAID"; then
# This case adds a new entry under the "Apps" section with the initial content: "LCVKEYNAME" "LCVKEYVAL"
Expand Down

0 comments on commit 28c9858

Please sign in to comment.