(PS3) Filebrowser - directories are colored green
This commit is contained in:
parent
15032d065f
commit
3cd656313b
|
@ -42,10 +42,6 @@ void filebrowser_set_root(filebrowser_t *filebrowser, const char *root_dir)
|
|||
strlcpy(filebrowser->root_dir, root_dir, sizeof(filebrowser->root_dir));
|
||||
}
|
||||
|
||||
void filebrowser_set_current_path(filebrowser_t *filebrowser, const char *path)
|
||||
{
|
||||
}
|
||||
|
||||
void filebrowser_free(filebrowser_t * filebrowser)
|
||||
{
|
||||
dir_list_free(filebrowser->current_dir.list);
|
||||
|
|
|
@ -319,7 +319,7 @@ static void browser_render(filebrowser_t * b)
|
|||
char fname_tmp[256];
|
||||
fill_pathname_base(fname_tmp, b->current_dir.list->elems[i].data, sizeof(fname_tmp));
|
||||
currentY = currentY + ySpacing;
|
||||
cellDbgFontPuts(currentX, currentY, FONT_SIZE, i == current_index ? RED : WHITE, fname_tmp);
|
||||
cellDbgFontPuts(currentX, currentY, FONT_SIZE, i == current_index ? RED : b->current_dir.list->elems[i].attr.b ? GREEN : WHITE, fname_tmp);
|
||||
gl_render_msg_post(gl);
|
||||
}
|
||||
gl_render_msg_post(gl);
|
||||
|
|
Loading…
Reference in New Issue