From 0ab7aa426030fa1e6e4a3aef8f1f4f653adda45d Mon Sep 17 00:00:00 2001 From: Eamonn Rea Date: Fri, 15 Sep 2023 19:43:47 +0100 Subject: [PATCH 1/2] Set Game Art: Refactor copy method logic --- steamtinkerlaunch | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/steamtinkerlaunch b/steamtinkerlaunch index 5499b6c2..cf8f7cba 100755 --- a/steamtinkerlaunch +++ b/steamtinkerlaunch @@ -6,7 +6,7 @@ PREFIX="/usr" PROGNAME="SteamTinkerLaunch" NICEPROGNAME="Steam Tinker Launch" -PROGVERS="v14.0.20230916-1" +PROGVERS="v14.0.20230916-2 (setgameart-logicimprove)" PROGCMD="${0##*/}" SHOSTL="stl" GHURL="https://github.com" @@ -4060,14 +4060,7 @@ function setGameArtGui { SGATENFOOT="${SGASETARR[4]}" SGACOPYMETHOD="${SGASETARR[5]}" - ## TODO can we refactor this to take a string parameter? e.g. "--link" -- It looks like that might work from testing - if [ "$SGACOPYMETHOD" = "link" ]; then - setGameArt "$1" --hero="$SGAHERO" --logo="$SGALOGO" --boxart="$SGABOXART" --tenfoot="$SGATENFOOT" --link - elif [ "$SGACOPYMETHOD" = "move" ]; then - setGameArt "$1" --hero="$SGAHERO" --logo="$SGALOGO" --boxart="$SGABOXART" --tenfoot="$SGATENFOOT" --move - else # Default to copy - setGameArt "$1" --hero="$SGAHERO" --logo="$SGALOGO" --boxart="$SGABOXART" --tenfoot="$SGATENFOOT" --copy - fi + setGameArt "$1" --hero="$SGAHERO" --logo="$SGALOGO" --boxart="$SGABOXART" --tenfoot="$SGATENFOOT" "--${SGACOPYMETHOD}" esac } From 6879d5a82c8b291e308c5231bd09d9eb9bed372b Mon Sep 17 00:00:00 2001 From: Eamonn Rea Date: Fri, 15 Sep 2023 19:47:32 +0100 Subject: [PATCH 2/2] version bump --- steamtinkerlaunch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/steamtinkerlaunch b/steamtinkerlaunch index cf8f7cba..f5c827a3 100755 --- a/steamtinkerlaunch +++ b/steamtinkerlaunch @@ -6,7 +6,7 @@ PREFIX="/usr" PROGNAME="SteamTinkerLaunch" NICEPROGNAME="Steam Tinker Launch" -PROGVERS="v14.0.20230916-2 (setgameart-logicimprove)" +PROGVERS="v14.0.20230916-2" PROGCMD="${0##*/}" SHOSTL="stl" GHURL="https://github.com"