Skip to content

Commit

Permalink
Merge pull request #805 from cdeletre/main
Browse files Browse the repository at this point in the history
Balatro: Fix missing execution flags on 7za.aarch64 and enforce it by adding chmod in the launch script
  • Loading branch information
Cebion authored Oct 17, 2024
2 parents b7d9072 + c9cf7cc commit 2848f0e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions ports/balatro/Balatro.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ fi


source $controlfolder/control.txt
source $controlfolder/device_info.txt

get_controls

GAMEDIR="/$directory/ports/balatro"
Expand All @@ -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
Expand Down Expand Up @@ -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
Empty file modified ports/balatro/balatro/bin/7za.aarch64
100644 → 100755
Empty file.

0 comments on commit 2848f0e

Please sign in to comment.