Welcome to the Rockbox Technical Forums!
Work in progress%ft(filename, line)https://gerrit.rockbox.org/r/c/rockbox/+/6143Get a line of text from a file and display it in the wpsComments welcome
filename – filename Note: files can only be found in /.rockbox directory or one of itschildren. eg. %ft(wps/file.txt) would refer to /.rockbox/wps/file.txt
FYI - When I tried out the experimental builds I didn't know that there were limitations re where the .txt file can reside. So I named the file "iPodNames.txt" and put it in the root directory and then used %ft(/iPodNames.txt, 0) and it worked fine.
When someone wants to publish a theme to the general public, I assume they should specify in the description the oldest viable build in which all of theme's tags are functional. Is there a chronological list somewhere that specifies the build in which each new tag first became available?
Sounds useful (esp. for those of us with multiple ipods)Any possibility the playername could default initially to the device's serial number? (Though I'm not sure if that's accessible to RB, or if non-iPods even have such a thing, so it might not be practical).
Quote from: iPodVT on December 06, 2024, 05:56:46 PMFYI - When I tried out the experimental builds I didn't know that there were limitations re where the .txt file can reside. So I named the file "iPodNames.txt" and put it in the root directory and then used %ft(/iPodNames.txt, 0) and it worked fine.there wern't any limitations but then we decided to make it start at the .rockbox folder because thats how the rest of the theme tags dothat and to encourage the files for themes to stay containedalso there will be a file autogenerated by future builds called /.rockbox/playername.txt so you can ref it easily and cabbie in this patch has an example
Page created in 0.055 seconds with 17 queries.