From dbeefebcad97876a5b0afcf6c61a2c9c97fa9997 Mon Sep 17 00:00:00 2001 From: Vencislav Atanasov Date: Thu, 22 May 2025 22:10:48 +0300 Subject: [PATCH] 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 --- apps/main.c | 2 +- manual/advanced_topics/main.tex | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/main.c b/apps/main.c index a9fec9b786..7a29e90ab0 100644 --- a/apps/main.c +++ b/apps/main.c @@ -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); } } diff --git a/manual/advanced_topics/main.tex b/manual/advanced_topics/main.tex index a6654d4ee9..7d6bb0ae0b 100755 --- a/manual/advanced_topics/main.tex +++ b/manual/advanced_topics/main.tex @@ -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}