Skip to content

Commit

Permalink
Merge pull request #938 from Fraxinus88/starlit2
Browse files Browse the repository at this point in the history
Update Starlit to Ready to Run!
  • Loading branch information
Cebion authored Nov 15, 2024
2 parents 7cbff1c + 71a826a commit 838072c
Show file tree
Hide file tree
Showing 14 changed files with 255 additions and 30 deletions.
2 changes: 2 additions & 0 deletions ports/thestarlitescape/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Autogenerated by tools/build_data.py
game.droid
4 changes: 2 additions & 2 deletions ports/thestarlitescape/README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
## Notes

Thanks to xJackFox [https://xjackfox.itch.io/the-starlit-escape] for this game.
Thanks to xJackFox [https://xjackfox.itch.io/the-starlit-escape] for this game and allowing the distribution via PortMaster!
Thanks to JanTrueno for the script edits!

Source: https://xjackfox.itch.io/the-starlit-escape



## Controls

| Button | Action |
Expand Down
39 changes: 13 additions & 26 deletions ports/thestarlitescape/The Starlit Escape.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,41 +11,28 @@ elif [ -d "$XDG_DATA_HOME/PortMaster/" ]; then
else
controlfolder="/roms/ports/PortMaster"
fi

# Pm
source $controlfolder/control.txt
export PORT_32BIT="Y"


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

[ -f "/etc/os-release" ] && source "/etc/os-release"

GAMEDIR=/$directory/ports/thestarlitescape
exec > >(tee "$GAMEDIR/log.txt") 2>&1
cd $GAMEDIR

if [ "$OS_NAME" == "JELOS" ]; then
export SPA_PLUGIN_DIR="/usr/lib32/spa-0.2"
export PIPEWIRE_MODULE_DIR="/usr/lib32/pipewire-0.3/"
fi
# Permissions for manual installs
$ESUDO chmod +x "$GAMEDIR/gmloader"

export LD_LIBRARY_PATH="/usr/lib32:$GAMEDIR/libs:$GAMEDIR/utils/libs:$LD_LIBRARY_PATH"
# Log the execution of the script, the script overwrites itself on each launch
> "$GAMEDIR/log.txt" && exec > >(tee "$GAMEDIR/log.txt") 2>&1

# Exports
export LD_LIBRARY_PATH="/usr/lib32:$GAMEDIR/libs:$LD_LIBRARY_PATH"
export GMLOADER_DEPTH_DISABLE=1
export GMLOADER_SAVEDIR="$GAMEDIR/gamedata/"

cd $GAMEDIR

[ -f "./gamedata/data.win" ] && mv gamedata/data.win gamedata/game.droid
[ -f "./gamedata/game.win" ] && mv gamedata/game.win gamedata/game.droid

$ESUDO chmod 666 /dev/uinput

# Run Gmloader
$GPTOKEYB "gmloader" -c ./thestarlitescape.gptk &

$ESUDO chmod +x "$GAMEDIR/gmloader"

pm_platform_helper "$GAMEDIR/gmloader"
./gmloader thestarlitescape.apk

$ESUDO kill -9 $(pidof gptokeyb)
$ESUDO systemctl restart oga_events &
printf "\033c" > /dev/tty0

pm_finish
4 changes: 2 additions & 2 deletions ports/thestarlitescape/port.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@
"Fraxinus88"
],
"desc": "The Starlit Escape! A Game Boy style Metroidvania about exploring a haunted space station and meeting ghosts along the way! Made in the month of October for Halloween",
"inst": "Download game (windows ver) from https://xjackfox.itch.io/the-starlit-escape, copy all filles except the .exe to /ports/thestarlitescape/gamedata",
"inst": "Ready to Run!",
"genres": [
"adventure"
],
"image": null,
"rtr": false,
"rtr": true,
"exp": false,
"runtime": null,
"reqs": [],
Expand Down
Loading

0 comments on commit 838072c

Please sign in to comment.