add pxl8.get_title() API to expose cart title to Lua

This commit is contained in:
asrael 2025-12-07 15:52:54 -06:00
parent db82efe269
commit 99d9c43ea3
No known key found for this signature in database
GPG key ID: 2786557804DFAE24
9 changed files with 75 additions and 22 deletions

12
pxl8.sh
View file

@ -406,17 +406,21 @@ case "$COMMAND" in
"$0" build "$@" || exit 1
CART=""
EXTRA_ARGS=""
for arg in "$@"; do
if [[ "$arg" != "--release" ]]; then
if [[ "$arg" == "--release" ]]; then
continue
elif [[ "$arg" == "--repl" ]]; then
EXTRA_ARGS="$EXTRA_ARGS --repl"
elif [[ -z "$CART" ]]; then
CART="$arg"
break
fi
done
if [[ -z "$CART" ]]; then
"$BINDIR/pxl8"
"$BINDIR/pxl8" $EXTRA_ARGS
else
"$BINDIR/pxl8" "$CART"
"$BINDIR/pxl8" "$CART" $EXTRA_ARGS
fi
;;