summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Wilgus <wilgus.william@gmail.com>2022-03-11 20:11:31 -0500
committerWilliam Wilgus <wilgus.william@gmail.com>2022-03-11 20:11:31 -0500
commit97ec0a7e7327c59ea9741933725ce0e4f4c8706c (patch)
treeb9302b512c8f820273e103ec86b06a057119a311
parent95af36d0dd3a400bc22a12e76cb914eb4dce54f8 (diff)
downloadrockbox-97ec0a7e7327c59ea9741933725ce0e4f4c8706c.tar.gz
rockbox-97ec0a7e7327c59ea9741933725ce0e4f4c8706c.zip
Root redirect un-hide root volume
this appears to be problematic for now Change-Id: Ieb789f5ec10a0d25c559e9bfc2497cbc4f59c0ad
-rw-r--r--firmware/include/dircache_redirect.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/firmware/include/dircache_redirect.h b/firmware/include/dircache_redirect.h
index 65b2184d2b..52110b17a7 100644
--- a/firmware/include/dircache_redirect.h
+++ b/firmware/include/dircache_redirect.h
@@ -156,9 +156,10 @@ static inline void volume_onmount_internal(IF_MV_NONVOID(int volume))
156 while (rtlen > 0 && rtpath[--rtlen] == PATH_SEPCH) 156 while (rtlen > 0 && rtpath[--rtlen] == PATH_SEPCH)
157 rtpath[rtlen] = '\0'; /* remove extra separators */ 157 rtpath[rtlen] = '\0'; /* remove extra separators */
158 158
159#if 0 /*removed, causes issues with playback for now?*/
159 if (rtlen <= 0 || rtpath[rtlen] == VOL_END_TOK) 160 if (rtlen <= 0 || rtpath[rtlen] == VOL_END_TOK)
160 root_unmount_volume(volume); /* unmount so root can be hidden*/ 161 root_unmount_volume(volume); /* unmount so root can be hidden*/
161 162#endif
162 if (rtlen <= 0) /* Error occurred, card removed? Set root to default */ 163 if (rtlen <= 0) /* Error occurred, card removed? Set root to default */
163 goto standard_redirect; 164 goto standard_redirect;
164 root_mount_path(rtpath, NSITEM_CONTENTS); 165 root_mount_path(rtpath, NSITEM_CONTENTS);