diff options
author | Aidan MacDonald <amachronic@protonmail.com> | 2022-03-31 20:14:19 +0100 |
---|---|---|
committer | Aidan MacDonald <amachronic@protonmail.com> | 2022-04-01 11:40:02 -0400 |
commit | 5ffe520de4c70cfabc67a329cdb77d3d997bd45a (patch) | |
tree | 509537d1b39d732091fc8b2aa2464c0fd10108c2 /bootloader/x1000/boot.c | |
parent | 4f05a9d066337a883d8d82b531ff8db5c989e5b9 (diff) | |
download | rockbox-5ffe520de4c70cfabc67a329cdb77d3d997bd45a.tar.gz rockbox-5ffe520de4c70cfabc67a329cdb77d3d997bd45a.zip |
playlist: use path_strip_last_volume, clarify path conventions
The comment regarding Windows paths was fairly confusing as to
its intent. What the code is trying to do is replace the drive
letter with the volume containing the playlist, which appears
reasonable. The middle of the comment was devoted to explaining
why the code below was potentially incorrect which only served
to add to the confusion.
AFAICT the last volume specifier in a path will cause search to
start from the root of that volume, so any incorrect result can
be avoided by using the new function path_strip_last_volume().
Finally, add a comment at the top of the function that explains
what it does.
Change-Id: If4e4938801f2f81eb52f5d32b5461872995e5e83
Diffstat (limited to 'bootloader/x1000/boot.c')
0 files changed, 0 insertions, 0 deletions