From 9ce0c4c1e31f8e6a7c0ad78ac376b1516b5d1e08 Mon Sep 17 00:00:00 2001 From: Storm Dragon Date: Mon, 9 Sep 2024 01:20:56 -0400 Subject: [PATCH] For games that require steamcmd, you can now place the files manually if you want. --- audiogame-manager.sh | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/audiogame-manager.sh b/audiogame-manager.sh index 00bb8a2..e89eaaf 100755 --- a/audiogame-manager.sh +++ b/audiogame-manager.sh @@ -429,8 +429,24 @@ get_installer() { get_steam() { # Arguments: $1 id of item for download, $2 url for game trap "exit 0" SIGINT - echo "The next steps will install through steamcmd." + echo "manual intervention required." alert + dialog --backtitle "Audiogame Manager" \ + --yes-label "Continue with Steam" \ + --no-label "Install manually" \ + --extra-button \ + --extra-label "Exit" \ + --yesno "To install the game manually, place files in \"${WINEPREFIX}/drive_c/Program Files/${game}\"" -1 -1 --stdout + case $? in + 0) echo "The next steps will install through steamcmd." ;; + 1) + mkdir -p "${WINEPREFIX}/drive_c/Program Files/${game}" + dialog --backtitle "Audiogame Manager" \ + --msgbox "Place game files in \"${WINEPREFIX}/drive_c/Program Files/${game}\" and press enter to continue." -1 -1 --stdout + return + ;; + *) exit 0 ;; + esac # Check for steamcmd if ! command -v steamcmd &> /dev/null ; then dialog --backtitle "Audiogame Manager" \