summaryrefslogtreecommitdiffstats
path: root/bootloader/gigabeat.c
diff options
context:
space:
mode:
authorRobert Kukla <roolku@rockbox.org>2007-03-03 16:02:14 +0000
committerRobert Kukla <roolku@rockbox.org>2007-03-03 16:02:14 +0000
commita7311331d551cb09b0573a7935915de6dc54a4d1 (patch)
tree0ccc0bd41211fcd1f9c876fb451e4e27cdbcb67d /bootloader/gigabeat.c
parent97090863a6c7a8e5c785a9bc185482c033e89197 (diff)
downloadrockbox-a7311331d551cb09b0573a7935915de6dc54a4d1.tar.gz
rockbox-a7311331d551cb09b0573a7935915de6dc54a4d1.tar.bz2
rockbox-a7311331d551cb09b0573a7935915de6dc54a4d1.zip
look for rockbox.gigabeat in /.rockbox/ first like other SWCODEC targets
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12573 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'bootloader/gigabeat.c')
-rw-r--r--bootloader/gigabeat.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/bootloader/gigabeat.c b/bootloader/gigabeat.c
index 11da73b39b..e4cf6f08fd 100644
--- a/bootloader/gigabeat.c
+++ b/bootloader/gigabeat.c
@@ -254,11 +254,14 @@ load_rockbox:
loadbuffer = (unsigned char*) 0x100;
buffer_size = (unsigned char*)0x400000 - loadbuffer;
- rc = load_raw_firmware(loadbuffer, "/rockbox.gigabeat", buffer_size);
+ rc = load_raw_firmware(loadbuffer, "/.rockbox/rockbox.gigabeat", buffer_size);
if(rc < EOK) {
- printf("Error!");
- printf("Can't load rockbox.gigabeat:");
- printf(strerror(rc));
+ rc = load_raw_firmware(loadbuffer, "/rockbox.gigabeat", buffer_size);
+ }
+ if(rc < EOK) {
+ printf("Error!");
+ printf("Can't load rockbox.gigabeat:");
+ printf(strerror(rc));
} else {
if(!show_bootsplash) {
printf("Rockbox loaded.");