forked from othermod/PSPi-Version-6
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add portmaster to batocera * Downgrade to packer 1.10.3 * update image sources for recalbox * copy recursively * copy into correct subdirectory * switch to descent * set executable * update release notes --------- Co-authored-by: cory manson <[email protected]>
- Loading branch information
1 parent
2371ed4
commit d513cc8
Showing
480 changed files
with
131,188 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
deb540cd1f450c52c8b6b6a4420ef1e481041bad recalbox-rpizero2.img.xz | ||
bb8e6e862cedc4b6b1c77bab3540c358dbf11e25 recalbox-rpi4_64.img.xz | ||
1f6455cc4ce0a827d1add47636a2c7258ad72061 recalbox-rpizero2.img.xz | ||
fa1bb7007d46de5ef2d8d11fd8af366179b5b1bc recalbox-rpi4_64.img.xz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
#!/bin/bash | ||
# PORTMASTER: descent.zip, Descent.sh | ||
|
||
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="/userdata/roms/ports/PortMaster" | ||
fi | ||
|
||
source $controlfolder/control.txt | ||
source $controlfolder/device_info.txt | ||
[ -f "${controlfolder}/mod_${CFW_NAME}.txt" ] && source "${controlfolder}/mod_${CFW_NAME}.txt" | ||
get_controls | ||
|
||
GAMEDIR="/$directory/ports/descent" | ||
DEVICE_ARCH="${DEVICE_ARCH:-aarch64}" | ||
GAME="d1x-rebirth" | ||
ASPECT_X=${ASPECT_X:-4} | ||
ASPECT_Y=${ASPECT_Y:-3} | ||
|
||
cd $GAMEDIR | ||
|
||
$ESUDO rm -rf ~/.$GAME | ||
ln -sfv $GAMEDIR/config ~/.$GAME | ||
|
||
export LD_LIBRARY_PATH="$GAMEDIR/libs.$DEVICE_ARCH:$LD_LIBRARY_PATH" | ||
export SDL_FORCE_SOUNDFONTS=1 | ||
export SDL_SOUNDFONTS="$GAMEDIR/soundfont.sf2" | ||
|
||
# Add some cheats | ||
if [ ! -f "./cheats.txt" ]; then | ||
echo "Error: Cheats file not found. No cheats will be used." > /dev/tty0 | ||
else | ||
CHEATS=$(sed -n -E '/^[^#]*=[[:space:]]*1([^0-9#]|$)/s/(=[[:space:]]*1[^0-9#]*)//p' ./cheats.txt | tr -d '\n') | ||
fi | ||
|
||
export TEXTINPUTPRESET=$CHEATS | ||
|
||
# Edit .cfg file with updated resolution and aspect ratio | ||
sed -i "s/^ResolutionX=640/ResolutionX=$DISPLAY_WIDTH/g" $GAMEDIR/config/descent.cfg | ||
sed -i "s/^ResolutionY=480/ResolutionY=$DISPLAY_HEIGHT/g" $GAMEDIR/config/descent.cfg | ||
sed -i "s/^AspectX=.*/AspectX=$ASPECT_Y/g" $GAMEDIR/config/descent.cfg | ||
sed -i "s/^AspectY=.*/AspectY=$ASPECT_X/g" $GAMEDIR/config/descent.cfg | ||
|
||
# Setup controls | ||
$ESUDO chmod 666 /dev/tty1 | ||
$ESUDO chmod 666 /dev/uinput | ||
|
||
if [ $CFW_NAME == "ArkOS" ]; then | ||
$GPTOKEYB "$GAME.compat" -c "config/joy.gptk" & | ||
SDL_GAMECONTROLLERCONFIG="$sdl_controllerconfig" | ||
./$GAME.compat -hogdir data | ||
else | ||
$GPTOKEYB "$GAME.$DEVICE_ARCH" -c "config/joy.gptk" & | ||
SDL_GAMECONTROLLERCONFIG="$sdl_controllerconfig" | ||
./$GAME.$DEVICE_ARCH -hogdir data | ||
fi | ||
|
||
$ESUDO kill -9 $(pidof gptokeyb) | ||
$ESUDO systemctl restart oga_events & | ||
printf "\033c" >> /dev/tty1 |
Oops, something went wrong.