Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Balatro: Fix missing execution flags on 7za.aarch64 and enforce it by adding chmod in the launch script #805

Merged
merged 1 commit into from
Oct 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.
Loading