diff options
author | Peter D'Hoye <peter.dhoye@gmail.com> | 2007-04-05 20:24:07 +0000 |
---|---|---|
committer | Peter D'Hoye <peter.dhoye@gmail.com> | 2007-04-05 20:24:07 +0000 |
commit | bf92f9c1f6531849008507019043d6b6836bb098 (patch) | |
tree | 84029d1fd6e1cd7e4456a2e5cbb993dad56c39a1 /apps | |
parent | 1396826a30b4ca2acb4db946dbf42f3f7456a0f0 (diff) | |
download | rockbox-bf92f9c1f6531849008507019043d6b6836bb098.tar.gz rockbox-bf92f9c1f6531849008507019043d6b6836bb098.zip |
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
Diffstat (limited to 'apps')
-rw-r--r-- | apps/misc.c | 8 |
1 files changed, 4 insertions, 4 deletions
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) | |||
890 | DIR* dir = NULL; | 890 | DIR* dir = NULL; |
891 | struct dirent* entry = NULL; | 891 | struct dirent* entry = NULL; |
892 | 892 | ||
893 | /* 1. open ROCKBOX_DIR and find the BOOTFILE dir entry */ | 893 | /* 1. open BOOTDIR and find the BOOTFILE dir entry */ |
894 | dir = opendir(ROCKBOX_DIR); | 894 | dir = opendir(BOOTDIR); |
895 | 895 | ||
896 | if(!dir) return; /* do we want an error splash? */ | 896 | if(!dir) return; /* do we want an error splash? */ |
897 | 897 | ||
898 | /* loop all files in ROCKBOX_DIR */ | 898 | /* loop all files in BOOTDIR */ |
899 | while(0 != (entry = readdir(dir))) | 899 | while(0 != (entry = readdir(dir))) |
900 | { | 900 | { |
901 | if(!strcasecmp(entry->d_name, BOOTFILE)) | 901 | if(!strcasecmp(entry->d_name, BOOTFILE)) |
@@ -911,7 +911,7 @@ void check_bootfile(bool do_rolo) | |||
911 | struct text_message message={ lines, 2 }; | 911 | struct text_message message={ lines, 2 }; |
912 | button_clear_queue(); /* Empty the keyboard buffer */ | 912 | button_clear_queue(); /* Empty the keyboard buffer */ |
913 | if(gui_syncyesno_run(&message, NULL, NULL) == YESNO_YES) | 913 | if(gui_syncyesno_run(&message, NULL, NULL) == YESNO_YES) |
914 | rolo_load(ROCKBOX_DIR "/" BOOTFILE); | 914 | rolo_load(BOOTDIR "/" BOOTFILE); |
915 | } | 915 | } |
916 | } | 916 | } |
917 | boot_size = entry->size; | 917 | boot_size = entry->size; |