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-04-27 00:03:22 +0300
committerAlexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com>2017-04-27 00:03:22 +0300
commit442af5cc3d7ffbd4e31fbb13132b9a44e38af694 (patch)
treed56b115f6a66712be665669cb086a0c4231b8418 /user_mods/remove_thumbnails.hmod
parent020485c1b9c7ac5df70ea8c1951ec42a8012df55 (diff)
Many minor fixes, new modules
Diffstat (limited to 'user_mods/remove_thumbnails.hmod')
-rw-r--r--user_mods/remove_thumbnails.hmod/install22
-rw-r--r--user_mods/remove_thumbnails.hmod/readme.txt3
-rw-r--r--user_mods/remove_thumbnails.hmod/uninstall7
3 files changed, 32 insertions, 0 deletions
diff --git a/user_mods/remove_thumbnails.hmod/install b/user_mods/remove_thumbnails.hmod/install
new file mode 100644
index 00000000..6ecd1d93
--- /dev/null
+++ b/user_mods/remove_thumbnails.hmod/install
@@ -0,0 +1,22 @@
+# Lines started with "#" are ignored and can be used as comments
+# Next line defines "scnfile" variable with path to "sys_game_thumbnail.scn" file
+scnfile=/usr/share/clover-ui/resources/prefab/sys_game_thumbnail.scn
+# Same with nes.json file
+nesjson=/usr/share/clover-ui/resources/sprites/nes.json
+# This line defines "preinitfile" variable with pre-init file name
+preinitfile=p81a8_hide_thumnbnails
+# "restore" is hakchi function which copies original file to corresponding path in /var/lib/hakchi/rootfs
+restore $scnfile
+restore $nesjson
+# sed is GNU util to modify file, this command replaces "enabled:true" to "enabled:false"
+# Please note that we need to edit $rootfs$scnfile (writable file), not a just $scnfile (original read-only file)
+sed -i -e 's/"enabled":true/"enabled":false/g' $rootfs$scnfile
+# Same with nes.json file, most simple way is to replace coordinates sprite coords with zeros
+sed -i -e 's/\[93,861,12,8\]/\[0,0,0,0\]/g' $rootfs$nesjson
+sed -i -e 's/\[93,871,12,8\]/\[0,0,0,0\]/g' $rootfs$nesjson
+sed -i -e 's/\[107,861,12,8\]/\[0,0,0,0\]/g' $rootfs$nesjson
+# Create pre-init script and echo "overmount" command to it
+echo "overmount $scnfile" > $preinitpath/$preinitfile
+echo "overmount $nesjson" >> $preinitpath/$preinitfile
+# We should return 1 to prevent execution of automatic installer
+return 1
diff --git a/user_mods/remove_thumbnails.hmod/readme.txt b/user_mods/remove_thumbnails.hmod/readme.txt
new file mode 100644
index 00000000..557d3552
--- /dev/null
+++ b/user_mods/remove_thumbnails.hmod/readme.txt
@@ -0,0 +1,3 @@
+=== No-thumbnails Hack ===
+
+This module removes thumbnails at the bottom of the screen.
diff --git a/user_mods/remove_thumbnails.hmod/uninstall b/user_mods/remove_thumbnails.hmod/uninstall
new file mode 100644
index 00000000..5cb43d4c
--- /dev/null
+++ b/user_mods/remove_thumbnails.hmod/uninstall
@@ -0,0 +1,7 @@
+# All we need is to delete created files, original file is safe and will be used again after reboot
+scnfile=/usr/share/clover-ui/resources/prefab/sys_game_thumbnail.scn
+nesjson=/usr/share/clover-ui/resources/sprites/nes.json
+preinitfile=p81a8_hide_thumnbnails
+rm -f $preinitfile
+rm -f $rootfs$scnfile
+rm -f $rootfs$nesjson