From bf92f9c1f6531849008507019043d6b6836bb098 Mon Sep 17 00:00:00 2001 From: Peter D'Hoye Date: Thu, 5 Apr 2007 20:24:07 +0000 Subject: Fix automatic rolo on new version for archos. Introduces new define in config files for bootfile location. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13036 a1c6a512-1295-4272-9138-f99709370657 --- apps/misc.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'apps') diff --git a/apps/misc.c b/apps/misc.c index 0a313395bf..4e1de7a019 100644 --- a/apps/misc.c +++ b/apps/misc.c @@ -890,12 +890,12 @@ void check_bootfile(bool do_rolo) DIR* dir = NULL; struct dirent* entry = NULL; - /* 1. open ROCKBOX_DIR and find the BOOTFILE dir entry */ - dir = opendir(ROCKBOX_DIR); + /* 1. open BOOTDIR and find the BOOTFILE dir entry */ + dir = opendir(BOOTDIR); if(!dir) return; /* do we want an error splash? */ - /* loop all files in ROCKBOX_DIR */ + /* loop all files in BOOTDIR */ while(0 != (entry = readdir(dir))) { if(!strcasecmp(entry->d_name, BOOTFILE)) @@ -911,7 +911,7 @@ void check_bootfile(bool do_rolo) struct text_message message={ lines, 2 }; button_clear_queue(); /* Empty the keyboard buffer */ if(gui_syncyesno_run(&message, NULL, NULL) == YESNO_YES) - rolo_load(ROCKBOX_DIR "/" BOOTFILE); + rolo_load(BOOTDIR "/" BOOTFILE); } } boot_size = entry->size; -- cgit v1.2.3