mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-14 02:27:39 -04:00
And use the unknown file colour if there is no extension
Change-Id: I35e16643fa655b7d1e006ea85be5c351427bca14
This commit is contained in:
parent
3b6b5130c9
commit
0c87e02631
1 changed files with 1 additions and 1 deletions
|
@ -514,7 +514,7 @@ int filetype_get_color(const char * name, int attr)
|
||||||
return custom_colors[0];
|
return custom_colors[0];
|
||||||
extension = strrchr(name, '.');
|
extension = strrchr(name, '.');
|
||||||
if (!extension)
|
if (!extension)
|
||||||
return custom_colors[MAX_FILETYPES];
|
return custom_colors[unknown_file.color];
|
||||||
extension++;
|
extension++;
|
||||||
|
|
||||||
i = find_extension(extension);
|
i = find_extension(extension);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue