diff options
author | Alexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com> | 2017-10-09 05:05:39 +0300 |
---|---|---|
committer | Alexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com> | 2017-10-09 05:05:39 +0300 |
commit | 4b3a7c567d13bad64a55d70b4b7854a51a520be3 (patch) | |
tree | e9227e5ea85d470eb6d91d4a36d1c6f8f03f49e1 /user_mods | |
parent | afb1d8a8b5fde2e4d49ad9c42e29d64f65074718 (diff) |
remove_thumbnail fix for NES Mini
Diffstat (limited to 'user_mods')
-rw-r--r-- | user_mods/remove_thumbnails.hmod/install | 6 | ||||
-rw-r--r-- | user_mods/remove_thumbnails.hmod/readme.txt | 3 |
2 files changed, 7 insertions, 2 deletions
diff --git a/user_mods/remove_thumbnails.hmod/install b/user_mods/remove_thumbnails.hmod/install index 36bb171c..b887093b 100644 --- a/user_mods/remove_thumbnails.hmod/install +++ b/user_mods/remove_thumbnails.hmod/install @@ -3,16 +3,18 @@ # Next line defines "scnfile" variable with path to "sys_game_thumbnail.scn" file
# It's more complicated since SNES Mini relased. Path is defferent for NES Mini and SNES Mini.
# Lets try to find it
-scnfile=$(find $mountpoint/ -name "sys_game_thumbnail.scn") && scnfile=${scnfile:${#mountpoint}}
+scnfile=$(find $mountpoint/usr/share -name "sys_game_thumbnail.scn") && scnfile=${scnfile:${#mountpoint}}
# Same with nes.json file
nesjson=/usr/share/clover-ui/resources/sprites/nes.json
# But nes.json exists on NES Mini only, otherwise we need packed.json
-[ ! -f "$nesjson" ] && nesjson=$(find $mountpoint/ -name "packed.json") && nesjson=${nesjson:${#mountpoint}}
+[ ! -f "$mountpoint/$nesjson" ] && nesjson=$(find $mountpoint/usr/share -name "packed.json") && nesjson=${nesjson:${#mountpoint}}
# 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
+echo scnfile: $scnfile
restore $scnfile
+echo nesjson: $nesjson
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)
diff --git a/user_mods/remove_thumbnails.hmod/readme.txt b/user_mods/remove_thumbnails.hmod/readme.txt index 557d3552..99f0f75b 100644 --- a/user_mods/remove_thumbnails.hmod/readme.txt +++ b/user_mods/remove_thumbnails.hmod/readme.txt @@ -1,3 +1,6 @@ === No-thumbnails Hack ===
This module removes thumbnails at the bottom of the screen.
+
+Known problems:
+- Long startup time on SNES Classic Mini for unknown reason
|