Use BOOTDIR and BOOTFILE defines instead of hardcoded path and file. FS#9559

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19190 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Björn Stenberg 2008-11-23 22:07:48 +00:00
parent 078753395d
commit b69be10d98
5 changed files with 12 additions and 9 deletions

View file

@ -29,6 +29,7 @@
#include "common.h"
#include "power.h"
#include "kernel.h"
#include "config.h"
/* TODO: Other bootloaders need to be adjusted to set this variable to true
on a button press - currently only the ipod, H10 and Sansa versions do. */
@ -141,7 +142,7 @@ int load_firmware(unsigned char* buf, char* firmware, int buffer_size)
int i;
char filename[MAX_PATH];
snprintf(filename,sizeof(filename),"/.rockbox/%s",firmware);
snprintf(filename,sizeof(filename), BOOTDIR "/%s",firmware);
fd = open(filename, O_RDONLY);
if(fd < 0)
{