Audio Quake launcher added. Not working quite right yet.

This commit is contained in:
Storm Dragon
2024-12-21 21:46:17 -05:00
parent ad0e7e3d7e
commit 8258419f7c
2 changed files with 70 additions and 3 deletions

View File

@ -244,7 +244,7 @@ download() {
fi
;;
esac
if [[ $downloadError -eq 0 ]]; then
if [[ $downloadError -ne 0 ]]; then
rm -fv "${cache}/${dest}"
dialog --backtitle "Linux Game Manager" \
--infobox "Error downloading \"${dest}\". Installation cannot continue." -1 -1 --stdout
@ -398,7 +398,7 @@ game_installer() {
exit 1
fi
fi
if [[ -e "${0%/*}/.launch/${game}.game" ]] && ! [[ -L "${0%/*}/.launch/${game.sh}" ]]; then
if [[ -e "${0%/*}/.launch/${game}.game" ]] && ! [[ -L "${0%/*}/.launch/${game}.sh" ]]; then
ln -srf "${0%/*}/.launch/${game}.game" "${0%/*}/.launch/${game}.sh"
fi
exit 0
@ -494,7 +494,7 @@ game_launcher() {
mapfile -t lines < <(
sed '/^$/d' "${configFile}" 2> /dev/null
if [[ -d ".launch" ]]; then
find "${0%/*}/.launch" -maxdepth 1 -type f -iname "*.sh" -exec bash -c '
find -L "${0%/*}/.launch" -maxdepth 1 -type f -iname "*.sh" -exec bash -c '
for f; do
[[ $(head -n1 "$f") == "#"* ]] && continue
name="${f##*/}"