diff --git a/audiogame-manager.sh b/audiogame-manager.sh index 1e04b09..9aaaa89 100755 --- a/audiogame-manager.sh +++ b/audiogame-manager.sh @@ -440,7 +440,7 @@ get_steam() { --inputbox "Please enter your Steam user name:" -1 -1 --stdout)" # Download the game mkdir -p "${WINEPREFIX}/drive_c/Program Files/${game}" - steamcmd +@sSteamCmdForcePlatformType windows +force_install_dir "${WINEPREFIX}/drive_c/Program Files/" +login "$steamUser" +app_update "$1" +quit || { dialog --backtitle "Audiogame Manager" \ + steamcmd +@sSteamCmdForcePlatformType windows +force_install_dir "${WINEPREFIX}/drive_c/Program Files/$game" +login "$steamUser" +app_update "$1" +quit || { dialog --backtitle "Audiogame Manager" \ --infobox "Something went wrong. Please make sure you have a stable internet connection, and if the problem persists, contact audiogame-manager's developers." -1 -1 exit 1; } }