Skip to content

Commit

Permalink
Add Non-Steam Game: Initial logic for writing out chosen compat tool …
Browse files Browse the repository at this point in the history
…to config.vdf
  • Loading branch information
sonic2kk committed Sep 16, 2023
1 parent 2a5716a commit c0e36f1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion steamtinkerlaunch
Original file line number Diff line number Diff line change
Expand Up @@ -22458,6 +22458,7 @@ function addNonSteamGame {
shift ;;
-ct=*|--compatibilitytool=*)
NOSTCOMPATTOOL="${i#*=}"
shift ;;
## Mostly lifted+shifted from setGameArt
-hr=*|--hero=*)
NOSTGHERO="${i#*=}" # <appid>_hero.png -- Banner used on game screen, logo goes on top of this
Expand Down Expand Up @@ -22622,7 +22623,8 @@ function addNonSteamGame {

if [ -n "$NOSTCOMPATTOOL" ]; then
writelog "INFO" "${FUNCNAME[0]} - Adding selected compatibility tool '$NOSTCOMPATTOOL' for Non-Stteam Game..."
# TODO call function to write out to config VDF
NSGVDFVALS=( "name!${NOSTCOMPATTOOL}" "config!" "priority!250" )
createVdfEntry "$CFGVDF" "CompatToolMapping" "$NOSTAIDGRID" "bottom" "${NSGVDFVALS[@]}"
fi

writelog "INFO" "${FUNCNAME[0]} - Finished adding new $NSGA"
Expand Down

0 comments on commit c0e36f1

Please sign in to comment.