Change playername.txt default value

Replaces the "Rockbox!" string in playername.txt with the player's model name, in case the file does not exist at boot.

Change-Id: I458b6b89d0d998d8cf889d01122b01cee42b21c5
This commit is contained in:
Vencislav Atanasov 2025-05-22 22:10:48 +03:00 committed by Solomon Peachy
parent 9e95b337cc
commit dbeefebcad
2 changed files with 3 additions and 3 deletions

View file

@ -206,7 +206,7 @@ int main(void)
int fd = open(ROCKBOX_DIR"/playername.txt", O_CREAT|O_WRONLY|O_TRUNC, 0666);
if(fd >= 0)
{
fdprintf(fd, "%s!", str(LANG_ROCKBOX_TITLE));
fdprintf(fd, "%s", MODEL_NAME);
close(fd);
}
}