From dbecaea1e77851af239ca008bdd2af9de2d8f550 Mon Sep 17 00:00:00 2001 From: Alexey 'Cluster' Avdyukhin Date: Tue, 20 Feb 2018 02:10:12 +0300 Subject: Option to select emulator on NES Mini --- retroarch.hmod/usr/bin/clover-kachikachi | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/retroarch.hmod/usr/bin/clover-kachikachi b/retroarch.hmod/usr/bin/clover-kachikachi index 07e113e..29e17e7 100755 --- a/retroarch.hmod/usr/bin/clover-kachikachi +++ b/retroarch.hmod/usr/bin/clover-kachikachi @@ -5,6 +5,7 @@ export MALI_NOCLEAR=1 supported_mappers="0 1 2 3 4 5 7 9 10 86 87 184" emulator=retroarch +clovercon_file=/dev/clovercon1 args=$@ filename=$1 @@ -57,6 +58,11 @@ exec kachikachi \ $args fi +# Hold up to forcely disable RetroArch +[ -e "$clovercon_file" ] && [ "$(cat $clovercon_file)" == "1000" ] && emulator=kachikachi +# Hold down to forcely enable RetroArch +[ -e "$clovercon_file" ] && [ "$(cat $clovercon_file)" == "2000" ] && emulator=retroarch + if [ "$emulator" == "retroarch" ]; then # Using RetroArch [ -z "$core" ] && exec nes $filename $args -- cgit v1.2.3