From b259fe4222817ccc0ae2f552f879e22d2c3c8681 Mon Sep 17 00:00:00 2001 From: Alexey 'Cluster' Avdyukhin Date: Wed, 15 Feb 2017 19:44:34 +0300 Subject: Huge rework. Finally module system from madmonkey. Hooray! --- user_mods/music_hack.hmod/install | 6 ++++++ user_mods/music_hack.hmod/music.wav | Bin 0 -> 44 bytes user_mods/music_hack.hmod/pb223_music_hack | 4 ++++ user_mods/music_hack.hmod/readme.txt | 5 +++++ user_mods/music_hack.hmod/uninstall | 10 ++++++++++ 5 files changed, 25 insertions(+) create mode 100644 user_mods/music_hack.hmod/install create mode 100644 user_mods/music_hack.hmod/music.wav create mode 100644 user_mods/music_hack.hmod/pb223_music_hack create mode 100644 user_mods/music_hack.hmod/readme.txt create mode 100644 user_mods/music_hack.hmod/uninstall (limited to 'user_mods') 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 Binary files /dev/null and b/user_mods/music_hack.hmod/music.wav 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 -- cgit v1.2.3