summaryrefslogtreecommitdiff
path: root/apps/tree.c
diff options
context:
space:
mode:
authorJörg Hohensohn <hohensoh@rockbox.org>2005-01-28 23:02:05 +0000
committerJörg Hohensohn <hohensoh@rockbox.org>2005-01-28 23:02:05 +0000
commit70bf516db1b0577a10311f9364d855d4af955ca7 (patch)
tree11bd05ea2bb2179e1c06df63d91a8632d67c88f0 /apps/tree.c
parent3c758c13af485c612a73f932bd905054026c4e72 (diff)
MMC hotswap enabled for Ondio
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5703 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/tree.c')
-rw-r--r--apps/tree.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/apps/tree.c b/apps/tree.c
index b482682e67..07a0928db1 100644
--- a/apps/tree.c
+++ b/apps/tree.c
@@ -1075,6 +1075,17 @@ static bool dirbrowse(void)
status_draw(false);
break;
+#ifdef HAVE_HOTSWAP
+ case SYS_FS_CHANGED:
+ if (!id3db) /* file browsing */
+ {
+ /* FixMe: skip this if not in root
+ and our path is still valid */
+ reload_root = true; /* the dumb way */
+ }
+ break;
+#endif
+
default:
if(default_event_handler(button) == SYS_USB_CONNECTED)
{