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" \