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
This commit is contained in:
William Wilgus 2022-03-13 17:40:17 -04:00
parent 6d122e3932
commit 6fdc160fab

View file

@ -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*/ root_unmount_volume(volume); /* unmount so root can be hidden*/
#endif #endif
if (rtlen <= 0) /* Error occurred, card removed? Set root to default */ if (rtlen <= 0) /* Error occurred, card removed? Set root to default */
{
root_unmount_volume(volume); /* unmount so root can be hidden*/
goto standard_redirect; goto standard_redirect;
}
root_mount_path(rtpath, NSITEM_CONTENTS); root_mount_path(rtpath, NSITEM_CONTENTS);
} }