Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ClusterM/hakchi2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/mods
diff options
context:
space:
mode:
authorAlexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com>2017-10-03 05:34:16 +0300
committerAlexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com>2017-10-03 05:34:16 +0300
commitcb77d39e94c308ac64be1fece1f77290d3342cc8 (patch)
tree424524fe07584e3f7c119ede7cad67caf394921d /mods
parente8b64a514cc017bd75d521f802f208be14022db1 (diff)
Added missed files, fixed chmenu
Diffstat (limited to 'mods')
-rw-r--r--mods/mod_hakchi/bin/busyboxbin0 -> 608480 bytes
-rw-r--r--mods/mod_hakchi/bin/rsyncbin0 -> 463320 bytes
-rw-r--r--mods/mod_hakchi/hakchi/rootfs/bin/chmenu37
-rw-r--r--mods/mod_hakchi/hakchi/rootfs/bin/clover-kachikachi-wr12
4 files changed, 49 insertions, 0 deletions
diff --git a/mods/mod_hakchi/bin/busybox b/mods/mod_hakchi/bin/busybox
new file mode 100644
index 00000000..e71f5823
--- /dev/null
+++ b/mods/mod_hakchi/bin/busybox
Binary files differ
diff --git a/mods/mod_hakchi/bin/rsync b/mods/mod_hakchi/bin/rsync
new file mode 100644
index 00000000..d37b2b8d
--- /dev/null
+++ b/mods/mod_hakchi/bin/rsync
Binary files differ
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