diff options
-rwxr-xr-x | retroarch.hmod/usr/bin/clover-kachikachi | 6 |
1 files changed, 6 insertions, 0 deletions
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 |