scummvm/dists/opendingux/scummvm.sh
Christophe Branchereau 849d05b5e2 OPENDINGUX: Add support for Opendingux Beta
OD Beta is a mips linux OS based on buildroot, that runs on ingenic gaming handhelds
like the gcw0, rg350 and many more.

There was a previous GCW0 port, that was running on legacy opendingux, but that
OS is not maintained since 2014 and has an outdated kernel and toolchain.

Od Beta on the other hand, runs with linux 5.15, has a GCC 10 toolchain and
an active developpment community.

This adds support for 3 flavors :

gcw0 that runs on all jz4770 cpus
lepus that runs on all jz4760 cpus
rg99 which is a jz4725 device

Signed-off-by: Christophe Branchereau <cbranchereau@gmail.com>
2021-11-01 17:39:26 +01:00

27 lines
514 B
Bash
Executable File

#!/bin/sh
cd `dirname $0`
if [ ! -f "$1" ]; then
exec ./scummvm 2>&1 >/var/tmp/scummvm.log
fi
path=`dirname "$1"`
file=`basename "$1"`
if [ "$file" == "detect.svm" ]; then
./scummvm --path="$path" --add --recursive 2>&1 >/var/tmp/scummvm.log
./scummvm --list-targets |
sed 's/\//-/g' | sed 's/://g' |
while IFS=' ' read id title; do
case $id in
Target) ;;
---*) ;;
*) echo "$id" > "$path/$title.svm" ;;
esac
done
else
gameid=`cat "$1"`
exec ./scummvm $gameid 2>&1 >/var/tmp/scummvm.log
fi