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

Update to: F-Zero Pocket, Mimi's Delivery Dash, Spelunky #68

Merged
merged 9 commits into from
Feb 9, 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: 2 additions & 9 deletions ports/f-zeropocket/F-Zero Pocket.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,12 @@ else
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

# We check on emuelec based CFWs the OS_NAME
[ -f "/etc/os-release" ] && source "/etc/os-release"

if [ "$OS_NAME" == "JELOS" ]; then
export SPA_PLUGIN_DIR="/usr/lib32/spa-0.2"
export PIPEWIRE_MODULE_DIR="/usr/lib32/pipewire-0.3/"
fi

GAMEDIR="/$directory/ports/f-zeropocket"

# Port specific additional libraries should be included within the port's directory in a separate subfolder named libs.
Expand Down
10 changes: 1 addition & 9 deletions ports/mimisdeliverydash/Mimi's Delivery Dash.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,15 @@ else
controlfolder="/roms/ports/PortMaster"
fi

if [ -f "/etc/os-release" ]; then
source "/etc/os-release"
fi

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

# Declare variables
GAMEDIR="/$directory/ports/mimisdeliverydash"

# Exports
if [ "$OS_NAME" == "JELOS" ]; then
export SPA_PLUGIN_DIR="/usr/lib32/spa-0.2"
export PIPEWIRE_MODULE_DIR="/usr/lib32/pipewire-0.3/"
fi

export LD_LIBRARY_PATH="/usr/lib:/usr/lib32:/$GAMEDIR/libs:$LD_LIBRARY_PATH"
export GMLOADER_DEPTH_DISABLE=1
export GMLOADER_SAVEDIR="$GAMEDIR/gamedata/"
Expand Down
Binary file not shown.
20 changes: 15 additions & 5 deletions ports/spelunky/Spelunky.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,17 @@ else
fi

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

get_controls

$ESUDO chmod 666 /dev/tty0
$ESUDO chmod 666 /dev/tty1
printf "\033c" > /dev/tty0
printf "\033c" > /dev/tty1

GAMEDIR="/$directory/ports/spelunky"
LIBDIR="$GAMEDIR/lib32"
BINDIR="$GAMEDIR/box86"
Expand All @@ -30,12 +38,14 @@ export BOX86_PATH="$BINDIR"

cd $GAMEDIR

$ESUDO chmod 666 /dev/tty1
$ESUDO chmod 666 /dev/uinput
$ESUDO sudo rm -rf ~/.config/SpelunkyClassicHD
ln -sfv $GAMEDIR/.config/SpelunkyClassicHD/ ~/.config
$ESUDO $controlfolder/oga_controls box86 $param_device &
$GPTOKEYB "box86" -c "spelunky.gptk" &

echo "Loading, please wait... (might take a while!)" > /dev/tty0
$BINDIR/box86 $GAMEDIR/spelunky 2>&1 | tee $GAMEDIR/log.txt
$ESUDO sudo kill -9 $(pidof oga_controls)
$ESUDO sudo systemctl restart oga_events &

$ESUDO kill -9 $(pidof gptokeyb) &
unset LD_LIBRARY_PATH
printf "\033c" >> /dev/tty1
printf "\033c" >> /dev/tty1
27 changes: 27 additions & 0 deletions ports/spelunky/spelunky/spelunky.gptk
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
back = esc
start = enter
up = up
down = down
left = left
right = right

a = z
b = x
y = c
x =
l1 = shift
l2 = a
r1 = p
r2 = s

l3 = \"
r3 = \"

left_analog_up = up
left_analog_down = down
left_analog_left = left
left_analog_right = right
right_analog_up = \"
right_analog_down = \"
right_analog_left = \"
right_analog_right = \"
Loading