diff options
author | Alexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com> | 2017-10-03 05:34:16 +0300 |
---|---|---|
committer | Alexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com> | 2017-10-03 05:34:16 +0300 |
commit | cb77d39e94c308ac64be1fece1f77290d3342cc8 (patch) | |
tree | 424524fe07584e3f7c119ede7cad67caf394921d /mods | |
parent | e8b64a514cc017bd75d521f802f208be14022db1 (diff) |
Added missed files, fixed chmenu
Diffstat (limited to 'mods')
-rw-r--r-- | mods/mod_hakchi/bin/busybox | bin | 0 -> 608480 bytes | |||
-rw-r--r-- | mods/mod_hakchi/bin/rsync | bin | 0 -> 463320 bytes | |||
-rw-r--r-- | mods/mod_hakchi/hakchi/rootfs/bin/chmenu | 37 | ||||
-rw-r--r-- | mods/mod_hakchi/hakchi/rootfs/bin/clover-kachikachi-wr | 12 |
4 files changed, 49 insertions, 0 deletions
diff --git a/mods/mod_hakchi/bin/busybox b/mods/mod_hakchi/bin/busybox Binary files differnew file mode 100644 index 00000000..e71f5823 --- /dev/null +++ b/mods/mod_hakchi/bin/busybox diff --git a/mods/mod_hakchi/bin/rsync b/mods/mod_hakchi/bin/rsync Binary files differnew file mode 100644 index 00000000..d37b2b8d --- /dev/null +++ b/mods/mod_hakchi/bin/rsync diff --git a/mods/mod_hakchi/hakchi/rootfs/bin/chmenu b/mods/mod_hakchi/hakchi/rootfs/bin/chmenu new file mode 100644 index 00000000..5ae4fdcc --- /dev/null +++ b/mods/mod_hakchi/hakchi/rootfs/bin/chmenu @@ -0,0 +1,37 @@ +#!/bin/sh +source /etc/preinit +script_init + +state_file=$installpath/menu + +[ -z "$1" ] && exit 1 +[ -f "$state_file" ] && prev_code=$(cat "$state_file") || prev_code=000 +[ "$1" == "$prev_code" ] && exit 1 + +echo Switching to menu $1 +if [ "$1" == "000" ]; then + targetpath=$rootfs$gamepath +else + targetpath=$rootfs$gamepath/$1 +fi + +[ -d "$targetpath" ] || exit 1 +echo $1 > "$state_file" + +echo New directory: $targetpath + +if [ "$1" != "000" ]; then + if [ -f "$rootfs$gamepath/title.fnt" ] && [ ! -f "$targetpath/title.fnt" ]; then + ln -s "$rootfs$gamepath/title.fnt" "$targetpath/title.fnt" + fi + if [ -f "$rootfs$gamepath/copyright.fnt" ] && [ ! -f "$targetpath/copyright.fnt" ]; then + ln -s "$rootfs$gamepath/copyright.fnt" "$targetpath/copyright.fnt" + fi +fi + +pkill -KILL clover-mcp +pkill -KILL ReedPlayer-Clover + +overmount_games + +/etc/init.d/S81clover-mcp start diff --git a/mods/mod_hakchi/hakchi/rootfs/bin/clover-kachikachi-wr b/mods/mod_hakchi/hakchi/rootfs/bin/clover-kachikachi-wr new file mode 100644 index 00000000..d8ff9899 --- /dev/null +++ b/mods/mod_hakchi/hakchi/rootfs/bin/clover-kachikachi-wr @@ -0,0 +1,12 @@ +#!/bin/sh +# Wrapper for kachikachi +# You can add extra command line arguments to all games at once +# using "cfg_nes_extra_args" variable in p0000_config +# or disable epilepsy protection using "cfg_disable_armet=y" + +source /etc/preinit +script_init + +args="$@ $cfg_nes_extra_args" +[ "$cfg_disable_armet" == "y" ] && args="$(echo $args | sed 's/--enable-armet//g')" +exec /usr/bin/clover-kachikachi $args |