Massive update to launchers and installers. Working toward the new launcher system, things may still be broken but getting better.

This commit is contained in:
Storm Dragon
2024-12-23 12:52:14 -05:00
parent b3ada38d9b
commit 34e05f47a6
63 changed files with 68 additions and 55 deletions

View File

@ -496,7 +496,7 @@ game_launcher() {
if [[ -d ".launch" ]]; then
find -L "${0%/*}/.launch" -maxdepth 1 -type f -iname "*.sh" -exec bash -c '
for f; do
[[ $(head -n1 "$f") == "#"* ]] && continue
[[ $(head -n1 "$f") =~ ^#$ ]] && continue
name="${f##*/}"
echo "${name%.sh}|$f"
done
@ -530,21 +530,6 @@ game_launcher() {
# Remove any trailing | from selectedGame variable
selectedGame="${selectedGame%|}"
case "${selectedGame}" in
*".tin")
git -C "${selectedGame%/*}" pull | \
dialog --progressbox "Checking for updates, please wait..." -1 -1
if [[ -n "${COLORTERM}" ]]; then
terminal_emulator tt++ ${selectedGame##*/}
else
pushd "${selectedGame%/*}"
exec tt++ ${selectedGame##*/}
fi
;;
*"main.py")
pushd "${selectedGame%/*}"
git pull -q | dialog --progressbox "Checking for updates, please wait..." -1 -1
python3 ${selectedGame}
;;
*.sh)
. "${selectedGame}"
;;