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);
}
}

View file

@ -40,8 +40,8 @@ It is not possible to change this setting via the settings menu.
Some themes show a customizable playername in the Whats Playing Screen.
Edit the first line of \fname{/.rockbox/playername.txt} to show your own message
or leave an empty file to disable the feature, deleting the file will generate a new
playername.txt file containing 'Rockbox!' next boot.
or leave an empty file to disable the feature. Deleting the file will generate a new
playername.txt file containing ``\playername'' on the next boot.
\subsection{\label{ref:OpenPlugins}Open Plugin Menu Items}