Skip to content

Commit

Permalink
Merge pull request #1269 from Slayer366/main
Browse files Browse the repository at this point in the history
Update Ubermosh collection
  • Loading branch information
Cebion authored Feb 5, 2025
2 parents b9b33a3 + fbc46a4 commit 169ba26
Show file tree
Hide file tree
Showing 87 changed files with 589 additions and 413 deletions.
8 changes: 0 additions & 8 deletions ports/ubermoshcollection/Uber/comandi.txt

This file was deleted.

Binary file not shown.
Binary file not shown.
48 changes: 0 additions & 48 deletions ports/ubermoshcollection/Uber/gamedata/OMEGA.sh

This file was deleted.

Binary file not shown.
48 changes: 0 additions & 48 deletions ports/ubermoshcollection/Uber/gamedata/Santicide.sh

This file was deleted.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
48 changes: 0 additions & 48 deletions ports/ubermoshcollection/Uber/gamedata/WRAITH.sh

This file was deleted.

Binary file not shown.
Binary file not shown.
64 changes: 64 additions & 0 deletions ports/ubermoshcollection/Uber/gamedata/black.run
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
#!/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
export PORT_32BIT="Y"
[ -f "${controlfolder}/mod_${CFW_NAME}.txt" ] && source "${controlfolder}/mod_${CFW_NAME}.txt"
get_controls

GAMEDIR="/$directory/ports/Uber/gamedata/black"

export LD_LIBRARY_PATH="/usr/lib32:$GAMEDIR/../lib:$GAMEDIR/libs:$LD_LIBRARY_PATH"
export GMLOADER_DEPTH_DISABLE=1
export GMLOADER_SAVEDIR="$GAMEDIR/gamedata/"

if [[ "$DEVICE_RAM" -lt 2 ]]; then
if [[ "${CFW_NAME^^}" == *"ARKOS"* ]] || [[ "${CFW_NAME^^}" == *"ODROID"* ]]; then
pm_message "Preparing Swap File, please wait..."
[ -f /swapfile ] && $ESUDO swapoff -v /swapfile
[ -f /swapfile ] && $ESUDO rm -f /swapfile
$ESUDO fallocate -l 384M /swapfile
$ESUDO chmod 600 /swapfile
$ESUDO mkswap /swapfile
$ESUDO swapon /swapfile
[ -f $GAMEDIR/timidity.cfg ] && $ESUDO rm -f $GAMEDIR/timidity.cfg
elif [[ "${CFW_NAME^^}" == "KNULLI" ]]; then
pm_message "Preparing Swap File, please wait..."
[ -f /media/SHARE/swapfile ] && $ESUDO swapoff -v /media/SHARE/swapfile
[ -f /media/SHARE/swapfile ] && $ESUDO rm -f /media/SHARE/swapfile
$ESUDO fallocate -l 384M /media/SHARE/swapfile
$ESUDO chmod 600 /media/SHARE/swapfile
$ESUDO mkswap /media/SHARE/swapfile
$ESUDO swapon /media/SHARE/swapfile
[ -f $GAMEDIR/timidity.cfg ] && $ESUDO rm -f $GAMEDIR/timidity.cfg
fi
fi

cd "$GAMEDIR"

> "$GAMEDIR/log.txt" && exec > >(tee "$GAMEDIR/log.txt") 2>&1

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

find gamedata -type f \( -iname "*.dll" -o -iname "*.exe" \) -delete

$GPTOKEYB "gmloader" &
pm_message "Loading, please wait... " > /dev/tty0

$ESUDO chmod +x "$GAMEDIR/gmloader"
pm_platform_helper "$GAMEDIR/gmloader"
./gmloader black.port

pm_finish
48 changes: 0 additions & 48 deletions ports/ubermoshcollection/Uber/gamedata/black.sh

This file was deleted.

Binary file not shown.
Binary file not shown.
Binary file not shown.
48 changes: 0 additions & 48 deletions ports/ubermoshcollection/Uber/gamedata/mosh.sh

This file was deleted.

64 changes: 64 additions & 0 deletions ports/ubermoshcollection/Uber/gamedata/omega.run
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
#!/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
export PORT_32BIT="Y"
[ -f "${controlfolder}/mod_${CFW_NAME}.txt" ] && source "${controlfolder}/mod_${CFW_NAME}.txt"
get_controls

GAMEDIR="/$directory/ports/Uber/gamedata/omega"

export LD_LIBRARY_PATH="/usr/lib32:$GAMEDIR/../lib:$GAMEDIR/libs:$LD_LIBRARY_PATH"
export GMLOADER_DEPTH_DISABLE=1
export GMLOADER_SAVEDIR="$GAMEDIR/gamedata/"

if [[ "$DEVICE_RAM" -lt 2 ]]; then
if [[ "${CFW_NAME^^}" == *"ARKOS"* ]] || [[ "${CFW_NAME^^}" == *"ODROID"* ]]; then
pm_message "Preparing Swap File, please wait..."
[ -f /swapfile ] && $ESUDO swapoff -v /swapfile
[ -f /swapfile ] && $ESUDO rm -f /swapfile
$ESUDO fallocate -l 384M /swapfile
$ESUDO chmod 600 /swapfile
$ESUDO mkswap /swapfile
$ESUDO swapon /swapfile
[ -f $GAMEDIR/timidity.cfg ] && $ESUDO rm -f $GAMEDIR/timidity.cfg
elif [[ "${CFW_NAME^^}" == "KNULLI" ]]; then
pm_message "Preparing Swap File, please wait..."
[ -f /media/SHARE/swapfile ] && $ESUDO swapoff -v /media/SHARE/swapfile
[ -f /media/SHARE/swapfile ] && $ESUDO rm -f /media/SHARE/swapfile
$ESUDO fallocate -l 384M /media/SHARE/swapfile
$ESUDO chmod 600 /media/SHARE/swapfile
$ESUDO mkswap /media/SHARE/swapfile
$ESUDO swapon /media/SHARE/swapfile
[ -f $GAMEDIR/timidity.cfg ] && $ESUDO rm -f $GAMEDIR/timidity.cfg
fi
fi

cd "$GAMEDIR"

> "$GAMEDIR/log.txt" && exec > >(tee "$GAMEDIR/log.txt") 2>&1

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

find gamedata -type f \( -iname "*.dll" -o -iname "*.exe" \) -delete

$GPTOKEYB "gmloader" -c "$GAMEDIR/omega.gptk" &
pm_message "Loading, please wait... " > /dev/tty0

$ESUDO chmod +x "$GAMEDIR/gmloader"
pm_platform_helper "$GAMEDIR/gmloader"
./gmloader omega.port

pm_finish
Binary file not shown.
Binary file not shown.
Loading

0 comments on commit 169ba26

Please sign in to comment.