forked from len0rd/rockbox
FS#11777: enhancement for rockbox_browse()
* Add struct browse_context to be passed to rockbox_browse. * Show proper title when selecting e.g. .wps file or .sbs file from the settings menu. * Add select only mode to rockbox_browse(). when a file is selected, it's path is stored to buffer and the browser exits without 'playing' the file. this will allow to use the browser in more places to select file including plugins. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28831 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
fbd75fcc86
commit
08af5d8404
8 changed files with 196 additions and 97 deletions
|
|
@ -731,6 +731,7 @@ static bool browse( char *dst, int dst_size, const char *start )
|
|||
}
|
||||
rb->strcpy( a+1, dc[tree->selected_item].name );
|
||||
tree->dirfilter = &dirfilter;
|
||||
tree->browse = NULL;
|
||||
while( 1 )
|
||||
{
|
||||
if( reload )
|
||||
|
|
@ -880,6 +881,7 @@ static bool browse_fonts( char *dst, int dst_size )
|
|||
}
|
||||
rb->strcpy( a+1, dc[tree->selected_item].name );
|
||||
tree->dirfilter = &dirfilter;
|
||||
tree->browse = NULL;
|
||||
rb->strcpy( bbuf, FONT_DIR "/" );
|
||||
rb->set_current_file( bbuf );
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue