Rockbox open source high quality audio player as a Music Player Daemon
mpris rockbox mpd libadwaita audio rust zig deno
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

multiboot_select plugin check volume root for valid firmware

Change-Id: I5feb4b00ae385ff8967de27682d4e4a528dc2ae5

authored by

William Wilgus and committed by
William Wilgus
4a91d376 15fdaa3a

+5 -2
+5 -2
apps/plugins/multiboot_select.c
··· 155 155 156 156 struct dirent* ent; 157 157 while((ent = rb->readdir(dir))) { 158 + const char *dname = ent->d_name; 159 + if (*dname == '.' && *(dname + 1) == '\0') 160 + dname++; /* skip the dot so we can check root of volume */ 158 161 int r = rb->snprintf(tmpbuf, sizeof(tmpbuf), "/<%d>/%s/%s/%s", 159 - vol, ent->d_name, bootdir, BOOTFILE); 162 + vol, dname, bootdir, BOOTFILE); 160 163 if(r < 0 || (size_t)r >= sizeof(tmpbuf)) 161 164 continue; 162 165 163 166 if(check_firmware(tmpbuf)) { 164 167 rb->snprintf(roots[nroots], MAX_PATH, "/<%d>/%s", 165 - vol, ent->d_name); 168 + vol, dname); 166 169 nroots += 1; 167 170 168 171 /* quit if we hit the maximum */