summaryrefslogtreecommitdiff
path: root/apps/filetree.c
diff options
context:
space:
mode:
authorPeter D'Hoye <peter.dhoye@gmail.com>2007-03-30 21:54:48 +0000
committerPeter D'Hoye <peter.dhoye@gmail.com>2007-03-30 21:54:48 +0000
commitd2b305571edbdf9d3f941ac22c03c96cd59e4da4 (patch)
tree6bf2733d238be0cb8f984a03d0f6f4372d14c7cf /apps/filetree.c
parent11fa3a871cf59707fa91c1cedfbb0ee9795c1ac1 (diff)
downloadrockbox-d2b305571edbdf9d3f941ac22c03c96cd59e4da4.zip
rockbox-d2b305571edbdf9d3f941ac22c03c96cd59e4da4.tar.gz
rockbox-d2b305571edbdf9d3f941ac22c03c96cd59e4da4.tar.bz2
rockbox-d2b305571edbdf9d3f941ac22c03c96cd59e4da4.tar.xz
Check if a new version got installed after usb disconnect and ask if user wants to reboot. Causes disk spinup before showing the usb logo. Also fixes do_menu() not returning to root_menu after usb disconnect.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12972 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/filetree.c')
-rw-r--r--apps/filetree.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/apps/filetree.c b/apps/filetree.c
index 5660a9b..4c48710 100644
--- a/apps/filetree.c
+++ b/apps/filetree.c
@@ -50,17 +50,10 @@
#include "radio.h"
#endif
-#ifndef SIMULATOR
-static int boot_size = 0;
-static int boot_cluster;
-#endif
-
#if LCD_DEPTH > 1
#include "backdrop.h"
#endif
-extern bool boot_changed;
-
int ft_build_playlist(struct tree_context* c, int start_index)
{
int i;
@@ -266,19 +259,6 @@ int ft_load(struct tree_context* c, const char* tempdir)
if ( !(dptr->attr & ATTR_DIRECTORY) )
dptr->attr |= filetype_get_attr((char *)entry->d_name);
-#ifdef BOOTFILE
- /* memorize/compare details about the boot file */
- if ((c->currdir[1] == 0) && !strcasecmp(entry->d_name, BOOTFILE)) {
- if (boot_size) {
- if ((entry->size != boot_size) ||
- (entry->startcluster != boot_cluster))
- boot_changed = true;
- }
- boot_size = entry->size;
- boot_cluster = entry->startcluster;
- }
-#endif
-
/* filter out non-visible files */
if ((!(dptr->attr & ATTR_DIRECTORY) && (
(*c->dirfilter == SHOW_PLAYLIST &&