Skip to content

Commit

Permalink
Merge pull request #158 from Cebion/2048_armhf
Browse files Browse the repository at this point in the history
2048 ARMHF Port
  • Loading branch information
kloptops authored Mar 6, 2024
2 parents 19e3436 + a26cf5b commit 89f34a7
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 9 deletions.
19 changes: 11 additions & 8 deletions ports/2048/2048.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/bin/bash

if [ -d "/opt/system/Tools/PortMaster/" ]; then
controlfolder="/opt/system/Tools/PortMaster"
elif [ -d "/opt/tools/PortMaster/" ]; then
Expand All @@ -9,24 +8,28 @@ else
fi

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

get_controls

whichos=$(grep "title=" "/usr/share/plymouth/themes/text.plymouth")
if [[ $whichos == *"TheRA"* ]]; then
if [[ $CFW_NAME == "TheRA" ]]; then
raloc="/opt/retroarch/bin"
raconf=""
elif [[ $whichos == *"RetroOZ"* ]]; then
elif [[ $CFW_NAME == "RetroOZ" ]]; then
raloc="/opt/retroarch/bin"
raconf="--config /home/odroid/.config/retroarch/retroarch.cfg"
elif [[ -e "/storage/.config/.OS_ARCH" ]] || [ -z $ESUDO ]; then
raloc="/usr/bin"
elif [[ $CFW_NAME == "ArkOS" ]]; then
raloc="/usr/local/bin"
raconf=""
elif [[ $CFW_NAME == "muOS" ]]; then
raloc="/mnt/mmc/MUOS"
raconf="--config /mnt/mmc/MUOS/.retroarch/retroarch.cfg"
else
raloc="/usr/local/bin"
raloc="/usr/bin"
raconf=""
fi

GAMEDIR="/$directory/ports/2048"

$raloc/retroarch $raconf -L $GAMEDIR/2048_libretro.so
$GPTOKEYB "retroarch" &
$raloc/retroarch $raconf -L $GAMEDIR/2048_libretro.so.${DEVICE_ARCH}
File renamed without changes.
Binary file added ports/2048/2048/2048_libretro.so.armhf
Binary file not shown.
3 changes: 2 additions & 1 deletion ports/2048/port.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
"runtime": null,
"reqs": [],
"arch": [
"aarch64"
"aarch64",
"armhf"
]
}
}

0 comments on commit 89f34a7

Please sign in to comment.