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.

Splash modified playername.txt on device startup

if playername.txt is modified its now splashed on device start-up

should be less confusing than having it in the WPS theme I hope..

Change-Id: Ifcec491f75a0c977a98d26292509f4ca62d79dac

+12
+12
apps/main.c
··· 201 201 202 202 #if !defined(BOOTLOADER) 203 203 allocate_playback_log(); 204 + static char playername[64]; 204 205 if (!file_exists(ROCKBOX_DIR"/playername.txt")) 205 206 { 206 207 int fd = open(ROCKBOX_DIR"/playername.txt", O_CREAT|O_WRONLY|O_TRUNC, 0666); ··· 208 209 { 209 210 fdprintf(fd, "%s", MODEL_NAME); 210 211 close(fd); 212 + } 213 + } 214 + else 215 + { 216 + int fd = open(ROCKBOX_DIR"/playername.txt", O_RDONLY); 217 + if(fd >= 0) 218 + { 219 + read_line(fd, playername, sizeof(playername)); 220 + close(fd); 221 + if (strcmp(playername, MODEL_NAME) != 0) 222 + splashf(HZ * 2, "%s", playername); 211 223 } 212 224 } 213 225 #endif