Triforce v0.3.4

The slowdown in fights and the controller whose buttons stopped arriving are fixed; the checks' file names; groundwork for Linux.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
ruckus7382sfgsgdf
2026-11-12 13:58:36 -06:00
parent 83b5be58d6
commit e33a732651
19 changed files with 266 additions and 127 deletions

View File

@@ -1,14 +1,14 @@
#!/bin/sh
# The game folder's launcher, what hookshot.exe is on Windows: Play, and Update when a newer release is out.
# The game itself is bin/hookshot. This file is copied to hookshot in the folder (nx2/make_game.py).
# The game folder's launcher, what Triforce.exe is on Windows: Play, and Update when a newer release is out.
# The game itself is bin/triforce. This file is copied to triforce in the folder (nx2/make_game.py).
#
# It starts the builder installed by an update ($XDG_DATA_HOME/hookshot/builder), or the builder= line in
# hookshot_version.txt (the AppImage that built the folder). With neither, it starts the game.
# It starts the builder installed by an update ($XDG_DATA_HOME/triforce/builder), or the builder= line in
# triforce_version.txt (the AppImage that built the folder; hookshot_version.txt in a folder that still has that). With neither, it starts the game.
set -eu
HERE=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)
installed() {
root=${HOOKSHOT_BUILDER_HOME:-${XDG_DATA_HOME:-$HOME/.local/share}}/hookshot/builder
root=${HOOKSHOT_BUILDER_HOME:-${XDG_DATA_HOME:-$HOME/.local/share}}/triforce/builder
[ -f "$root/current" ] || return 1
tag=$(tr -d ' \r\n' < "$root/current")
[ -n "$tag" ] && [ -x "$root/versions/$tag/AppRun" ] || return 1
@@ -16,13 +16,15 @@ installed() {
}
builder_line() {
[ -f "$HERE/hookshot_version.txt" ] || return 1
file=$HERE/triforce_version.txt
[ -f "$file" ] || file=$HERE/hookshot_version.txt
[ -f "$file" ] || return 1
path=
while IFS= read -r line || [ -n "$line" ]; do
case $line in
builder=*) path=${line#builder=} ;;
esac
done < "$HERE/hookshot_version.txt"
done < "$file"
[ -n "$path" ] && [ -x "$path" ] || return 1
printf '%s\n' "$path"
}
@@ -34,9 +36,11 @@ fi
if [ -n "$run" ]; then
exec "$run" --launch "$HERE"
fi
if [ -x "$HERE/bin/hookshot" ]; then
cd "$HERE"
exec ./bin/hookshot
fi
echo "Hookshot: the game (bin/hookshot) is missing from this folder. Build it again with Hookshot Builder." >&2
for game in bin/triforce bin/hookshot; do
if [ -x "$HERE/$game" ]; then
cd "$HERE"
exec "./$game"
fi
done
echo "Triforce: the game (bin/triforce) is missing from this folder. Build it again with Triforce Builder." >&2
exit 1