aboutsummaryrefslogtreecommitdiffstats
path: root/src/gfile/gfile.c
diff options
context:
space:
mode:
authorinmarket <inmarket@ugfx.org>2017-01-09 10:25:30 +1000
committerinmarket <inmarket@ugfx.org>2017-01-09 10:25:30 +1000
commitc7cce84274a8843f036a128fbb0185c84feaabc1 (patch)
treeda96e85ffcff68c146baed36448fd76ba831b127 /src/gfile/gfile.c
parent9216504ce3f825f59494facac637ded42f1cbe04 (diff)
downloaduGFX-c7cce84274a8843f036a128fbb0185c84feaabc1.tar.gz
uGFX-c7cce84274a8843f036a128fbb0185c84feaabc1.tar.bz2
uGFX-c7cce84274a8843f036a128fbb0185c84feaabc1.zip
Add support for a user provided file system.
Diffstat (limited to 'src/gfile/gfile.c')
-rw-r--r--src/gfile/gfile.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gfile/gfile.c b/src/gfile/gfile.c
index a7731130..4bc39189 100644
--- a/src/gfile/gfile.c
+++ b/src/gfile/gfile.c
@@ -16,6 +16,9 @@
* Virtual file-systems that have special open() calls do not need to
* be in this list.
*/
+#if GFILE_NEED_USERFS
+ extern const GFILEVMT FsUSERVMT;
+#endif
#if GFILE_NEED_ROMFS
extern const GFILEVMT FsROMVMT;
#endif
@@ -35,6 +38,9 @@
* that they are searched to find a file.
*/
static const GFILEVMT const * FsArray[] = {
+ #if GFILE_NEED_USERFS
+ &FsUSERVMT,
+ #endif
#if GFILE_NEED_ROMFS
&FsROMVMT,
#endif