From c9cf7cc0504a076858d6f5b3030bf1004fbdf672 Mon Sep 17 00:00:00 2001 From: cdeletre Date: Wed, 16 Oct 2024 22:44:31 -0400 Subject: [PATCH] Balatro: Fix missing execution flags on 7za.aarch64 and enforce it by adding chmod in the launch script --- ports/balatro/Balatro.sh | 11 ++++++----- ports/balatro/balatro/bin/7za.aarch64 | Bin 2 files changed, 6 insertions(+), 5 deletions(-) mode change 100644 => 100755 ports/balatro/balatro/bin/7za.aarch64 diff --git a/ports/balatro/Balatro.sh b/ports/balatro/Balatro.sh index 113ece0e60..6819aa7b0d 100755 --- a/ports/balatro/Balatro.sh +++ b/ports/balatro/Balatro.sh @@ -14,7 +14,7 @@ fi source $controlfolder/control.txt -source $controlfolder/device_info.txt + get_controls GAMEDIR="/$directory/ports/balatro" @@ -27,10 +27,12 @@ mkdir -p "$XDG_DATA_HOME" mkdir -p "$XDG_CONFIG_HOME" ## Uncomment the following file to log the output, for debugging purpose -# exec > >(tee "$GAMEDIR/log.txt") 2>&1 +# > "$GAMEDIR/log.txt" && exec > >(tee "$GAMEDIR/log.txt") 2>&1 cd $GAMEDIR +$ESUDO chmod a+x ./bin/* + if [ -f "Balatro.exe" ]; then GAMEFILE="Balatro.exe" elif [ -f "balatro.exe" ]; then @@ -120,11 +122,10 @@ fi if [ -f "$LAUNCH_GAME" ]; then $GPTOKEYB "love.${DEVICE_ARCH}" & + pm_platform_helper "./bin/love.${DEVICE_ARCH}" ./bin/love.${DEVICE_ARCH} "$LAUNCH_GAME" else echo "Balatro game file not found. Please drop in Balatro.exe or Balatro.love into the Balatro folder prior to starting the game." fi -$ESUDO kill -9 $(pidof gptokeyb) -$ESUDO systemctl restart oga_events & -printf "\033c" > /dev/tty0 +pm_finish diff --git a/ports/balatro/balatro/bin/7za.aarch64 b/ports/balatro/balatro/bin/7za.aarch64 old mode 100644 new mode 100755