From 6fdc160fab05c4119c2547b4986c0e78b017a53b Mon Sep 17 00:00:00 2001 From: William Wilgus Date: Sun, 13 Mar 2022 17:40:17 -0400 Subject: dircache_redirect.h, hide root volume when only one mounted there is no need to show the root of the drive when only the internal is mounted Change-Id: I310c48befa51742d05b6d5ce501d0b7c2c7c7ab7 --- firmware/include/dircache_redirect.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/firmware/include/dircache_redirect.h b/firmware/include/dircache_redirect.h index 52110b17a7..5c3f630d74 100644 --- a/firmware/include/dircache_redirect.h +++ b/firmware/include/dircache_redirect.h @@ -161,7 +161,10 @@ static inline void volume_onmount_internal(IF_MV_NONVOID(int volume)) root_unmount_volume(volume); /* unmount so root can be hidden*/ #endif if (rtlen <= 0) /* Error occurred, card removed? Set root to default */ + { + root_unmount_volume(volume); /* unmount so root can be hidden*/ goto standard_redirect; + } root_mount_path(rtpath, NSITEM_CONTENTS); } -- cgit v1.2.3