From b3ada38d9b080c346525e3b1ce7f4ba062de14d9 Mon Sep 17 00:00:00 2001 From: Storm Dragon Date: Mon, 23 Dec 2024 11:10:24 -0500 Subject: [PATCH] Update Doom launcher to work better with the new launch system. Add some other launchers for the switch to the new system. --- .launch/Ball Bouncer.game | 1 + .launch/End of Time.game | 9 +++++++++ .launch/FreeDoom.game | 2 +- .launch/StickMUD.game | 9 +++++++++ 4 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 .launch/Ball Bouncer.game create mode 100644 .launch/End of Time.game create mode 100644 .launch/StickMUD.game diff --git a/.launch/Ball Bouncer.game b/.launch/Ball Bouncer.game new file mode 100644 index 0000000..e5703a2 --- /dev/null +++ b/.launch/Ball Bouncer.game @@ -0,0 +1 @@ +"${installPath}/BallBouncer/BallBouncer" diff --git a/.launch/End of Time.game b/.launch/End of Time.game new file mode 100644 index 0000000..a3e1b95 --- /dev/null +++ b/.launch/End of Time.game @@ -0,0 +1,9 @@ +mudPath="${installPath}/tintin-endoftime/eot.tin" +pushd "${mudPath%/*}" +git pull | \ +dialog --progressbox "Checking for updates, please wait..." -1 -1 +if [[ -n "${COLORTERM}" ]]; then +terminal_emulator tt++ ${mudPath##*/} +else +tt++ ${mudPath##*/} +fi diff --git a/.launch/FreeDoom.game b/.launch/FreeDoom.game index e5ea3b9..f218bdf 100755 --- a/.launch/FreeDoom.game +++ b/.launch/FreeDoom.game @@ -144,7 +144,7 @@ translate_text() { custom_game() { - mapfile -t customGames < <(find "${0%/*}/TobyCustom/" -type f -iname '*.sh') + mapfile -t customGames < <(find "${BASH_SOURCE[0]%/*}/TobyCustom/" -type f -iname '*.sh') declare -a customMenu for i in "${customGames[@]}" ; do customMenu+=("$i") diff --git a/.launch/StickMUD.game b/.launch/StickMUD.game new file mode 100644 index 0000000..7716a2f --- /dev/null +++ b/.launch/StickMUD.game @@ -0,0 +1,9 @@ +mudPath="${installPath}/tintin-stickmud/stickmud.tin" +pushd "${mudPath%/*}" +git pull | \ +dialog --progressbox "Checking for updates, please wait..." -1 -1 +if [[ -n "${COLORTERM}" ]]; then +terminal_emulator tt++ ${mudPath##*/} +else +tt++ ${mudPath##*/} +fi