aboutsummaryrefslogtreecommitdiffstats
path: root/src/gfile/gfile.c
diff options
context:
space:
mode:
authorinmarket <andrewh@inmarket.com.au>2014-06-27 23:04:01 +1000
committerinmarket <andrewh@inmarket.com.au>2014-06-27 23:04:01 +1000
commita9f1520e02ed5425abbfb7e621f103053c2e3799 (patch)
treec4cf5e3b238bf83b58aaac87d03dc02746d56881 /src/gfile/gfile.c
parentc2a27f3e7c5700be2eb2f29bcfb677241f62703e (diff)
downloaduGFX-a9f1520e02ed5425abbfb7e621f103053c2e3799.tar.gz
uGFX-a9f1520e02ed5425abbfb7e621f103053c2e3799.tar.bz2
uGFX-a9f1520e02ed5425abbfb7e621f103053c2e3799.zip
Fatfs Cleanup
Diffstat (limited to 'src/gfile/gfile.c')
-rw-r--r--src/gfile/gfile.c44
1 files changed, 21 insertions, 23 deletions
diff --git a/src/gfile/gfile.c b/src/gfile/gfile.c
index a410a801..b7ebbc97 100644
--- a/src/gfile/gfile.c
+++ b/src/gfile/gfile.c
@@ -477,35 +477,33 @@ bool_t gfileEOF(GFILE *f) {
return f->vmt->eof(f);
}
-#if GFILE_NEED_FATFS
- bool_t gfileMount(char fs, const char* drive) {
- const GFILEVMT *p;
-
- // Find the correct VMT
- for(p = FsChain; p; p = p->next) {
- if (p->prefix == fs) {
- if (!p->mount)
- return FALSE;
- return p->mount(drive);
- }
+bool_t gfileMount(char fs, const char* drive) {
+ const GFILEVMT *p;
+
+ // Find the correct VMT
+ for(p = FsChain; p; p = p->next) {
+ if (p->prefix == fs) {
+ if (!p->mount)
+ return FALSE;
+ return p->mount(drive);
}
- return FALSE;
}
+ return FALSE;
+}
- bool_t gfileUnmount(char fs, const char* drive) {
- const GFILEVMT *p;
+bool_t gfileUnmount(char fs, const char* drive) {
+ const GFILEVMT *p;
- // Find the correct VMT
- for(p = FsChain; p; p = p->next) {
- if (p->prefix == fs) {
- if (!p->mount)
- return FALSE;
- return p->unmount(drive);
- }
+ // Find the correct VMT
+ for(p = FsChain; p; p = p->next) {
+ if (p->prefix == fs) {
+ if (!p->mount)
+ return FALSE;
+ return p->unmount(drive);
}
- return FALSE;
}
-#endif
+ return FALSE;
+}
/********************************************************
* String VMT routines