1
0
Fork 0
forked from len0rd/rockbox

rolo: Write bootdata regardless of whether running from root or redirect

As long as bootdata is valid, write it.

Change-Id: I63114b835d43c800217d2b688f9f7e2c2fb34c15
This commit is contained in:
Dana Conrad 2024-08-24 00:52:03 +00:00 committed by Solomon Peachy
parent ec8fb871f0
commit 56dd7ead63

View file

@ -250,9 +250,8 @@ int rolo_load(const char* filename)
err = LOAD_FIRMWARE(filebuf, filename, filebuf_size);
#if defined(HAVE_BOOTDATA) && !defined(SIMULATOR)
/* write the bootdata as if rolo were the bootloader
* FIXME: this won't work for root redirect... */
if (!strcmp(filename, BOOTDIR "/" BOOTFILE) && boot_data_valid)
// Write bootdata as long as the existing bootdata is valid
if (boot_data_valid)
{
int volume = 0;