Skip to content

Commit

Permalink
Merge pull request #720 from Ganimoth/Box-Space-Station
Browse files Browse the repository at this point in the history
New Port: BOX: Space Station
  • Loading branch information
Cebion authored Oct 2, 2024
2 parents af6ca3e + 69f15f0 commit f24043c
Show file tree
Hide file tree
Showing 16 changed files with 121 additions and 0 deletions.
45 changes: 45 additions & 0 deletions ports/boxspace/BOX Space Station.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
#!/bin/bash

XDG_DATA_HOME=${XDG_DATA_HOME:-$HOME/.local/share}

if [ -d "/opt/system/Tools/PortMaster/" ]; then
controlfolder="/opt/system/Tools/PortMaster"
elif [ -d "/opt/tools/PortMaster/" ]; then
controlfolder="/opt/tools/PortMaster"
elif [ -d "$XDG_DATA_HOME/PortMaster/" ]; then
controlfolder="$XDG_DATA_HOME/PortMaster"
else
controlfolder="/roms/ports/PortMaster"
fi

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

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

$ESUDO chmod 666 /dev/tty0

GAMEDIR="/$directory/ports/boxspace"

export LD_LIBRARY_PATH="/usr/lib:$GAMEDIR/libs:$LD_LIBRARY_PATH"

cd $GAMEDIR

# We log the execution of the script into log.txt
> "$GAMEDIR/log.txt" && exec > >(tee "$GAMEDIR/log.txt") 2>&1

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

$ESUDO chmod 666 /dev/uinput

$GPTOKEYB "gmloadernext" &

$ESUDO chmod +x "$GAMEDIR/gmloadernext"

./gmloadernext game.apk

$ESUDO kill -9 $(pidof gptokeyb)
$ESUDO systemctl restart oga_events &
printf "\033c" > /dev/tty0
15 changes: 15 additions & 0 deletions ports/boxspace/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
## Notes

BOX: Space Station is a challenging puzzle game where your objective is to escape, but the more than one hundred levels will make your objective more difficult. Developed and published by plaYnice!

https://store.steampowered.com/app/1613150/BOX_Space_Station/

## Controls

| Button | Action |
|--|--|
|DPAD/Stick|Movement|
|A|Confirm / Reset (ingame)|
|Start|Menu|


Binary file added ports/boxspace/boxspace/game.apk
Binary file not shown.
Binary file added ports/boxspace/boxspace/gmloadernext
Binary file not shown.
17 changes: 17 additions & 0 deletions ports/boxspace/boxspace/lib/README
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# What are those?

Those are native Android libraries meant to be loaded into the guest environment,
and the come from a [prebuilt AOSP image provided by google](https://ci.android.com/builds/branches/aosp-main/grid).

# What are these files for then?

They provide a similar-to-android implementation to all of the supported libraries,
allowing us to make less guesswork, and provide more accurate renditions of a lot
of those functionalities, specially for libc++ where a lot of guesswork was done
in the past.

OpenAL, OpenGL and libc.so are provided from the host (via thunking where needed) or
via reimplementations.

You still need a suitable GameMaker Android title/runner. You can source those from
either [freeware Android APKs](https://itch.io) or finding a [suitable runner](https://gamemaker.io/account/runtimes) for hacking.
Binary file not shown.
Binary file not shown.
Binary file added ports/boxspace/boxspace/lib/arm64-v8a/libm.so
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added ports/boxspace/boxspace/lib/armeabi-v7a/libm.so
Binary file not shown.
Binary file added ports/boxspace/boxspace/libs/libopenal.so.1
Binary file not shown.
Binary file added ports/boxspace/boxspace/libs/libzip.so.5
Binary file not shown.
14 changes: 14 additions & 0 deletions ports/boxspace/gameinfo.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<gameList>
<game>
<path>./BOX Space Station.sh</path>
<name>BOX: Space Station</name>
<desc>BOX: Space Station is a challenging puzzle game where your objective is to escape, but the more than one hundred levels will make your objective more difficult.
</desc>
<releasedate>20210521T000000</releasedate>
<developer>plaYnice!</developer>
<publisher>plaYnice!</publisher>
<genre>Puzzle</genre>
<image>./boxspace/screenshot.png</image>
</game>
</gameList>
30 changes: 30 additions & 0 deletions ports/boxspace/port.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"version": 3,
"name": "boxspace.zip",
"items": [
"BOX Space Station.sh",
"boxspace"
],
"items_opt": [],
"attr": {
"title": "BOX: Space Station",
"porter": [
"Ganimoth"
],
"desc": "BOX: Space Station is a challenging puzzle game where your objective is to escape, but the more than one hundred levels will make your objective more difficult. Developed and published by plaYnice!",
"desc_md": null,
"inst": "Purchase the game on Steam https://store.steampowered.com/app/1613150/BOX_Space_Station/ and copy data.win, audiogroup1.dat and _223235__dambient__8_bit_loop.ogg into the port folder.",
"inst_md": null,
"genres": [
"puzzle"
],
"image": null,
"rtr": false,
"exp": false,
"runtime": null,
"reqs": [],
"arch": [
"aarch64"
]
}
}
Binary file added ports/boxspace/screenshot.png
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 f24043c

Please sign in to comment.