Add progress bars to some more operations, e.g. installing games. This required a bulk edit to all installer scripts, thanks Claud for the assist. Oh and send downloads through a progressbar.

This commit is contained in:
Storm Dragon
2025-08-05 03:11:37 -04:00
parent 19f54405bd
commit e12bcadb2a
109 changed files with 148 additions and 210 deletions

View File

@@ -33,7 +33,7 @@ game_installer() {
done
# If all games are installed, exit
if [[ ${#menuList[@]} -eq 0 ]]; then
echo "All games are already installed."
agm_msgbox "Audio Game Installer" "" "All games are already installed."
exit 0
fi
menuList+=("Donate" "Donate")
@@ -74,7 +74,7 @@ game_removal() {
# Modern wine is unified - no architecture-specific wine executables needed
mapfile -t lines < <(sed -e '/^$/d' -e '/^[[:space:]]*#/d' "${configFile}" 2> /dev/null)
if [[ ${#lines} -eq 0 ]]; then
echo "No games found."
agm_msgbox "Audio Game Removal" "" "No games found."
exit 0
fi
# Create the menu of installed games
@@ -112,7 +112,7 @@ game_removal() {
get_bottle "${game[0]}"
if ! agm_yesno "Confirm Removal" "Audio Game Removal" "Are you sure you want to remove \"${game[2]}\"?"; then
echo "Removal cancelled."
agm_msgbox "Audio Game Removal" "" "Removal cancelled."
exit 0
fi
@@ -142,7 +142,7 @@ kill_game() {
# Modern wine is unified - no architecture-specific wine executables needed
mapfile -t lines < <(sed '/^$/d' "${configFile}" 2> /dev/null)
if [[ ${#lines} -eq 0 ]]; then
echo "No games found."
agm_msgbox "Audio Game Killer" "" "No games found."
exit 0
fi
# Create the menu of installed games
@@ -171,7 +171,7 @@ kill_game() {
# kill the wine server.
get_bottle "${game%|*}"
wineserver -k
echo "The selected game has been stopped."
agm_msgbox "Audio Game Killer" "" "The selected game has been stopped."
fi
exit 0
}
@@ -338,7 +338,7 @@ game_launcher() {
update_nvda_dlls
mapfile -t lines < <(sed -e '/^$/d' -e '/^ *#/d' "${configFile}" 2> /dev/null)
if [[ ${#lines} -eq 0 ]]; then
echo "Install some games first."
agm_msgbox "Audio Game Launcher" "" "Install some games first."
exit 0
fi
if [[ $# -eq 0 ]]; then
@@ -369,7 +369,7 @@ game_launcher() {
else
create_game_array "$game"
if [[ -z "$game" ]]; then
echo "Game $1 not found."
agm_msgbox "Audio Game Launcher" "" "Game $1 not found."
exit 1
fi
fi
@@ -558,6 +558,6 @@ if [[ -f ".install/${game}.sh" ]]; then
export LANG="en_US.UTF-8"
. ".install/${game}.sh"
else
echo "Error: Game '${game}' not found in .install directory"
agm_msgbox "Audio Game Installer" "" "Error: Game '${game}' not found in .install directory"
exit 1
fi