mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 18:17:39 -04:00
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:
parent
078753395d
commit
b69be10d98
5 changed files with 12 additions and 9 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue