|
6 | 6 | PREFIX="/usr" |
7 | 7 | PROGNAME="SteamTinkerLaunch" |
8 | 8 | NICEPROGNAME="Steam Tinker Launch" |
9 | | -PROGVERS="v14.0.20230112-3 (sgdb-artwork-gui)" |
| 9 | +PROGVERS="v14.0.20230112-4 (sgdb-artwork-gui)" |
10 | 10 | PROGCMD="${0##*/}" |
11 | 11 | PROGINTERNALPROTNAME="Proton-stl" |
12 | 12 | SHOSTL="stl" |
@@ -1550,19 +1550,10 @@ function getSteamGridDBArtworkGUI { |
1550 | 1550 | pollWinRes "$TITLE" |
1551 | 1551 | setShowPic |
1552 | 1552 |
|
1553 | | - ## TODO adjust dialog size, it's too tall and probably too wide |
1554 | | - ## TODO display game banner like we do in Set Game Art? |
1555 | | - # |
1556 | | - # Remove below after implementation: |
1557 | | - # |
1558 | | - # Menu will work by having boxes for a Steam AppID, SteamGridDB Game ID, or Game Name |
1559 | | - # - If Steam AppID box is populated, ignore Game ID box and search on Steam AppID (--search-id="$FSGDBSN" and store "--steam" as variable to pass to cmd) |
1560 | | - # - Otherwise use Game ID box (store "--nonsteam" as variable to pass to cmd) |
1561 | | - # Will also have box for Game Name which we will always pass (if no match found for name, we should fall back to one of the AppIDs given) |
1562 | | - # If all boxes are empty, nothing will happen |
1563 | | - # Show notifier to display some feedback, and use logging to note what values we got and what is being prioritised |
1564 | | - # Since we'll have the AppID handy, we can specify the filename_appid |
1565 | | - # |
| 1553 | + # AppID passed from commandline is used as --filename-appid |
| 1554 | + # User can provide Steam AppID, SteamGridDB Game ID, or Game Name (used to attempt to fetch SteamGridDB Game ID) |
| 1555 | + # - Steam AppID is prioritised if provided |
| 1556 | + # - commandlineGetSteamGridDBArtwork is set to fall back to SteamGridDB Game ID if Game Name doesn't return anything, so passing both is fine |
1566 | 1557 | # SGDBHASFILE will use the global option by default and populate the dropdown with the relevant option, just like the command does |
1567 | 1558 | # It will use the Global Menu default, but also allows the user to specify a different action this time |
1568 | 1559 | # |
@@ -1612,16 +1603,6 @@ function getSteamGridDBArtworkGUI { |
1612 | 1603 | FSGDBAWAPPLYARTWORKFLAG="--no-apply" |
1613 | 1604 | fi |
1614 | 1605 |
|
1615 | | - # Extra logging, mainly for debugging purposes |
1616 | | - writelog "INFO" "${FUNCNAME[0]} - FSGDBAWAPPID: ${FSGDBAWAPPID}" |
1617 | | - writelog "INFO" "${FUNCNAME[0]} - FSGDBAWGAMEID: ${FSGDBAWGAMEID}" |
1618 | | - writelog "INFO" "${FUNCNAME[0]} - FSGDBAWSEARCHNAME: ${FSGDBAWSEARCHNAME}" |
1619 | | - writelog "INFO" "${FUNCNAME[0]} - FSGDBAWHASFILE: ${FSGDBAWHASFILE}" |
1620 | | - writelog "INFO" "${FUNCNAME[0]} - FSGDBAWAPPLYARTWORK: ${FSGDBAWAPPLYARTWORK}" |
1621 | | - writelog "INFO" "${FUNCNAME[0]} - ############################################" |
1622 | | - writelog "INFO" "${FUNCNAME[0]} - FSGDBAWGAMETYPEFLAG: ${FSGDBAWGAMETYPEFLAG}" |
1623 | | - writelog "INFO" "${FUNCNAME[0]} - FSGDBAWAPPLYARTWORKFLAG: ${FSGDBAWAPPLYARTWORKFLAG}" |
1624 | | - |
1625 | 1606 | # Execute actual fetching of artwork, could probably put notifier here |
1626 | 1607 | writelog "INFO" "${FUNCNAME[0]} - Executing 'commandlineGetSteamGridDBArtwork --search-id=\"${FSGDBAWGAMEID}\" --search-name=\"${FSGDBAWSEARCHNAME}\" --filename-appid=\"${FSGDBAWFILENAMEAPPID}\" \"${FSGDBAWHASFILE}\" \"${FSGDBAWGAMETYPEFLAG}\"'" |
1627 | 1608 | commandlineGetSteamGridDBArtwork --search-id="${FSGDBAWSEARCHID}" --search-name="${FSGDBAWSEARCHNAME}" --filename-appid="${FSGDBAWFILENAMEAPPID}" "${FSGDBAWHASFILE}" "${FSGDBAWAPPLYARTWORKFLAG}" "${FSGDBAWGAMETYPEFLAG}" |
|
0 commit comments