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
diff options
context:
space:
mode:
authorAlexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com>2017-02-15 19:44:34 +0300
committerAlexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com>2017-02-15 19:44:34 +0300
commitb259fe4222817ccc0ae2f552f879e22d2c3c8681 (patch)
tree9a1618205842818e0f8fcb00e4f8903bc2a22bbc /user_mods
parent0128c2cdce3bc8d0afa32058edfbfb75ba5f21d7 (diff)
Huge rework. Finally module system from madmonkey. Hooray!
Diffstat (limited to 'user_mods')
-rw-r--r--user_mods/music_hack.hmod/install6
-rw-r--r--user_mods/music_hack.hmod/music.wavbin0 -> 44 bytes
-rw-r--r--user_mods/music_hack.hmod/pb223_music_hack4
-rw-r--r--user_mods/music_hack.hmod/readme.txt5
-rw-r--r--user_mods/music_hack.hmod/uninstall10
5 files changed, 25 insertions, 0 deletions
diff --git a/user_mods/music_hack.hmod/install b/user_mods/music_hack.hmod/install
new file mode 100644
index 00000000..08f3bded
--- /dev/null
+++ b/user_mods/music_hack.hmod/install
@@ -0,0 +1,6 @@
+copy "$transferpath/pb223_music_hack" "$preinitpath"
+mkdir -p "$rootfs/usr/share/clover-ui/resources/sounds/hvc"
+copy "$transferpath/music.wav" "$rootfs/usr/share/clover-ui/resources/sounds/hvc/bgm_boot.wav"
+copy "$transferpath/music.wav" "$rootfs/usr/share/clover-ui/resources/sounds/hvc/bgm_home.wav"
+copy "$transferpath/uninstall" "$installpath/hmod/uninstall-music_hack"
+cfg_music_hack_enabled='y'
diff --git a/user_mods/music_hack.hmod/music.wav b/user_mods/music_hack.hmod/music.wav
new file mode 100644
index 00000000..8dbde954
--- /dev/null
+++ b/user_mods/music_hack.hmod/music.wav
Binary files differ
diff --git a/user_mods/music_hack.hmod/pb223_music_hack b/user_mods/music_hack.hmod/pb223_music_hack
new file mode 100644
index 00000000..3715736f
--- /dev/null
+++ b/user_mods/music_hack.hmod/pb223_music_hack
@@ -0,0 +1,4 @@
+if [ $cfg_music_hack_enabled == "y" ]; then
+overmount /usr/share/clover-ui/resources/sounds/hvc/bgm_boot.wav
+overmount /usr/share/clover-ui/resources/sounds/hvc/bgm_home.wav
+fi
diff --git a/user_mods/music_hack.hmod/readme.txt b/user_mods/music_hack.hmod/readme.txt
new file mode 100644
index 00000000..65bec1bc
--- /dev/null
+++ b/user_mods/music_hack.hmod/readme.txt
@@ -0,0 +1,5 @@
+=== Music Hack ===
+
+This mode allows to disable NES Mini's menu music or replace it with your own music.
+
+Just replace "music.wav" file if you want to hear your own music in the menu of NES Mini. It must be in PCM format.
diff --git a/user_mods/music_hack.hmod/uninstall b/user_mods/music_hack.hmod/uninstall
new file mode 100644
index 00000000..99409410
--- /dev/null
+++ b/user_mods/music_hack.hmod/uninstall
@@ -0,0 +1,10 @@
+rm "$preinitpath/pb223_music_hack"
+rm "$rootfs/usr/share/clover-ui/resources/sounds/hvc/bgm_boot.wav"
+rm "$rootfs/usr/share/clover-ui/resources/sounds/hvc/bgm_home.wav"
+rmdir --ignore-fail-on-non-empty "$rootfs/usr/share/clover-ui/resources/sounds/hvc"
+rmdir --ignore-fail-on-non-empty "$rootfs/usr/share/clover-ui/resources/sounds"
+rmdir --ignore-fail-on-non-empty "$rootfs/usr/share/clover-ui/resources"
+rmdir --ignore-fail-on-non-empty "$rootfs/usr/share/clover-ui"
+rmdir --ignore-fail-on-non-empty "$rootfs/usr/share"
+rmdir --ignore-fail-on-non-empty "$rootfs/usr"
+unset cfg_music_hack_enabled