diff options
Diffstat (limited to 'src/gfile/inc_romfs.c')
-rw-r--r-- | src/gfile/inc_romfs.c | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/src/gfile/inc_romfs.c b/src/gfile/inc_romfs.c index 97d26239..6b7719c7 100644 --- a/src/gfile/inc_romfs.c +++ b/src/gfile/inc_romfs.c @@ -5,14 +5,16 @@ * http://ugfx.org/license.html */ -/** - * This file is included by src/gfile/gfile.c - */ - /******************************************************** - * The ROM file-system VMT + * The ROM file-system ********************************************************/ +#include "gfx.h" + +#if GFX_USE_GFILE && GFILE_NEED_ROMFS + +#include "gfile_fs.h" + #include <string.h> // What directory file formats do we understand @@ -54,8 +56,7 @@ static bool_t ROMEof(GFILE *f); static void ROMFlClose(gfileList *pfl); #endif -static const GFILEVMT FsROMVMT = { - GFILE_CHAINHEAD, // next +const GFILEVMT FsROMVMT = { GFSFLG_CASESENSITIVE|GFSFLG_SEEKABLE|GFSFLG_FAST, // flags 'S', // prefix 0, ROMExists, ROMFilesize, 0, @@ -66,8 +67,6 @@ static const GFILEVMT FsROMVMT = { ROMFlOpen, ROMFlRead, ROMFlClose #endif }; -#undef GFILE_CHAINHEAD -#define GFILE_CHAINHEAD &FsROMVMT static const ROMFS_DIRENTRY *ROMFindFile(const char *fname) { @@ -175,3 +174,5 @@ static bool_t ROMEof(GFILE *f) gfxFree(pfl); } #endif + +#endif //GFX_USE_GFILE && GFILE_NEED_ROMFS |