Skip to content

Commit

Permalink
R2R update for Septuple
Browse files Browse the repository at this point in the history
  • Loading branch information
Ganimoth committed Dec 22, 2024
1 parent 7a820e6 commit 60f4d5d
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 14 deletions.
2 changes: 1 addition & 1 deletion ports/septuple/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## Notes

Thanks to NNB for creating this game! https://nnbnh.itch.io/septuple
Thanks to NNB for creating this game and allowing us to host it! Check the game's page at [Itch.io](https://nnbnh.itch.io/septuple)

## Controls

Expand Down
21 changes: 10 additions & 11 deletions ports/septuple/Septuple.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ else
fi

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

[ -f "${controlfolder}/mod_${CFW_NAME}.txt" ] && source "${controlfolder}/mod_${CFW_NAME}.txt"

Expand All @@ -22,21 +21,21 @@ get_controls
GAMEDIR=/$directory/ports/septuple/
CONFDIR="$GAMEDIR/conf/"

> "$GAMEDIR/log.txt" && exec > >(tee "$GAMEDIR/log.txt") 2>&1
# Ensure the conf directory exists
mkdir -p "$GAMEDIR/conf"

# Set the XDG environment variables for config & savefiles
export XDG_CONFIG_HOME="$CONFDIR"
export XDG_DATA_HOME="$CONFDIR"
> "$GAMEDIR/log.txt" && exec > >(tee "$GAMEDIR/log.txt") 2>&1
export SDL_GAMECONTROLLERCONFIG="$sdl_controllerconfig"

cd $GAMEDIR

runtime="frt_3.5.2"
if [ ! -f "$controlfolder/libs/${runtime}.squashfs" ]; then
# Check for runtime if not downloaded via PM
if [ ! -f "$controlfolder/harbourmaster" ]; then
echo "This port requires the latest PortMaster to run, please go to https://portmaster.games/ for more info." > /dev/tty0
pm_message "This port requires the latest PortMaster to run, please go to https://portmaster.games/ for more info."
sleep 5
exit 1
fi
Expand All @@ -54,12 +53,12 @@ PATH="$godot_dir:$PATH"

export FRT_NO_EXIT_SHORTCUTS=FRT_NO_EXIT_SHORTCUTS

$ESUDO chmod 666 /dev/uinput
$GPTOKEYB "$runtime" -c "./septuple.gptk" &
SDL_GAMECONTROLLERCONFIG="$sdl_controllerconfig" "$runtime" $GODOT_OPTS --main-pack "gamedata/septuple.x86_64"
$GPTOKEYB "$runtime" -c "septuple.gptk" &
pm_platform_helper "$godot_dir/$runtime"
"$runtime" $GODOT_OPTS --main-pack "gamedata/septuple.x86_64"


$ESUDO umount "$godot_file"
$ESUDO kill -9 $(pidof gptokeyb)
$ESUDO systemctl restart oga_events &
printf "\033c" > /dev/tty0
if [[ "$PM_CAN_MOUNT" != "N" ]]; then
$ESUDO umount "$godot_dir"
fi
pm_finish
4 changes: 2 additions & 2 deletions ports/septuple/port.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@
],
"desc": "A precision platformer about the septuple jump paper! Created by NNB. ",
"desc_md": null,
"inst": "Download septuple.x86_64 from https://nnbnh.itch.io/septuple and place it into gamedata folder. ",
"inst": "Ready to run. ",
"inst_md": null,
"genres": [
"platformer"
],
"image": null,
"rtr": false,
"rtr": true,
"exp": false,
"runtime": "frt_3.5.2.squashfs",
"reqs": [],
Expand Down
Empty file.
Binary file not shown.
Binary file not shown.
Binary file not shown.
File renamed without changes.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 60f4d5d

Please sign in to comment.