From 52d827a26dec8bc4967cf3c2984a10ace114fa21 Mon Sep 17 00:00:00 2001 From: Miika Pekkarinen Date: Tue, 11 Mar 2008 19:39:26 +0000 Subject: FS#7598 - Dircache support for multivolume targets (by Phil Light). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16632 a1c6a512-1295-4272-9138-f99709370657 --- firmware/include/dir.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'firmware/include/dir.h') diff --git a/firmware/include/dir.h b/firmware/include/dir.h index 4327b91682..6433f1d2ba 100644 --- a/firmware/include/dir.h +++ b/firmware/include/dir.h @@ -22,6 +22,23 @@ #include "config.h" +#ifdef HAVE_MULTIVOLUME + +/* how to name volumes, first char must be outside of legal file names, + a number gets appended to enumerate, if applicable */ +#ifdef HAVE_MMC +#define VOL_NAMES "" +#define VOL_ENUM_POS 4 /* position of %d, to avoid runtime calculation */ +#elif defined(HAVE_HOTSWAP) +#define VOL_NAMES "" +#define VOL_ENUM_POS 8 /* position of %d, to avoid runtime calculation */ +#else +#define VOL_NAMES "" +#define VOL_ENUM_POS 3 +#endif + +#endif + #ifdef HAVE_DIRCACHE # include "dircache.h" # define DIR DIR_CACHED -- cgit v1.2.3