Skip to content

Commit

Permalink
Fix wrong case in getGameScopeGeneralOpts GSSHWRES
Browse files Browse the repository at this point in the history
  • Loading branch information
HanPrower committed Aug 28, 2024
1 parent 178e6e2 commit 4345783
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion steamtinkerlaunch
Original file line number Diff line number Diff line change
Expand Up @@ -11315,7 +11315,7 @@ function setGameScopeVars {
function getGameScopeGeneralOpts {
# GameScope Show Resolution (corresponds to -W, -H options, uppercase) -- Actual GameScope window size -- Dropdown
if [ -z "$GSSHWRES" ]; then
if ! grep -qw "\-w" <<< "$GAMESCOPE_ARGS" || ! grep -qw "\-h" <<< "$GAMESCOPE_ARGS"; then
if ! grep -qw "\-W" <<< "$GAMESCOPE_ARGS" || ! grep -qw "\-H" <<< "$GAMESCOPE_ARGS"; then
GSSHWRES="1280x720"
else
GSSHWRES="$(tr ' ' '\n' <<< "$GAMESCOPE_ARGS" | grep -wA1 "\-W" | tail -n1)x$(tr ' ' '\n' <<< "$GAMESCOPE_ARGS" | grep -wA1 "\-H" | tail -n1)"
Expand Down

0 comments on commit 4345783

Please sign in to comment.