summaryrefslogtreecommitdiff
path: root/firmware/include/dircache_redirect.h
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/include/dircache_redirect.h')
-rw-r--r--firmware/include/dircache_redirect.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/firmware/include/dircache_redirect.h b/firmware/include/dircache_redirect.h
index 36f68b7251..f51ce70690 100644
--- a/firmware/include/dircache_redirect.h
+++ b/firmware/include/dircache_redirect.h
@@ -139,10 +139,8 @@ static inline void fileop_onsync_internal(struct filestr_base *stream)
139 139
140static inline void volume_onmount_internal(IF_MV_NONVOID(int volume)) 140static inline void volume_onmount_internal(IF_MV_NONVOID(int volume))
141{ 141{
142#if (defined(HAVE_MULTIVOLUME) || (defined(HAVE_MULTIBOOT) && !defined(BOOTLOADER)))
143 char path[VOL_MAX_LEN+2];
144#endif
145#if defined(HAVE_MULTIBOOT) && !defined(SIMULATOR) && !defined(BOOTLOADER) 142#if defined(HAVE_MULTIBOOT) && !defined(SIMULATOR) && !defined(BOOTLOADER)
143 char path[VOL_MAX_LEN+2];
146 char rtpath[MAX_PATH / 2]; 144 char rtpath[MAX_PATH / 2];
147 make_volume_root(volume, path); 145 make_volume_root(volume, path);
148 146
@@ -185,6 +183,7 @@ standard_redirect:
185 root_mount_path(RB_ROOT_CONTENTS_DIR, NSITEM_CONTENTS); 183 root_mount_path(RB_ROOT_CONTENTS_DIR, NSITEM_CONTENTS);
186 } 184 }
187#elif defined(HAVE_MULTIVOLUME) 185#elif defined(HAVE_MULTIVOLUME)
186 char path[VOL_MAX_LEN+2];
188 make_volume_root(volume, path); 187 make_volume_root(volume, path);
189 root_mount_path(path, RB_ROOT_VOL_HIDDEN(volume) ? NSITEM_HIDDEN : 0); 188 root_mount_path(path, RB_ROOT_VOL_HIDDEN(volume) ? NSITEM_HIDDEN : 0);
190 if (volume == path_strip_volume(RB_ROOT_CONTENTS_DIR, NULL, false)) 189 if (volume == path_strip_volume(RB_ROOT_CONTENTS_DIR, NULL, false))