forked from len0rd/rockbox
Use splashes for errors in the properties plugin
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13781 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
76855f0039
commit
11b559a027
1 changed files with 3 additions and 10 deletions
|
@ -299,11 +299,7 @@ enum plugin_status plugin_start(struct plugin_api* api, void* file)
|
||||||
if(!found)
|
if(!found)
|
||||||
{
|
{
|
||||||
/* weird: we couldn't find the entry. This Should Never Happen (TM) */
|
/* weird: we couldn't find the entry. This Should Never Happen (TM) */
|
||||||
rb->lcd_clear_display();
|
rb->splash(0, "File/Dir not found: %s", (char*)file);
|
||||||
rb->lcd_puts(0,0,"File/Dir not found:");
|
|
||||||
rb->lcd_puts(0,1,(char*)file);
|
|
||||||
rb->lcd_update();
|
|
||||||
|
|
||||||
rb->action_userabort(TIMEOUT_BLOCK);
|
rb->action_userabort(TIMEOUT_BLOCK);
|
||||||
return PLUGIN_OK;
|
return PLUGIN_OK;
|
||||||
}
|
}
|
||||||
|
@ -311,11 +307,8 @@ enum plugin_status plugin_start(struct plugin_api* api, void* file)
|
||||||
/* get the info depending on its_a_dir */
|
/* get the info depending on its_a_dir */
|
||||||
if(!(its_a_dir ? dir_properties((char*)file):file_properties((char*)file)))
|
if(!(its_a_dir ? dir_properties((char*)file):file_properties((char*)file)))
|
||||||
{
|
{
|
||||||
/* something went wrong */
|
/* something went wrong (to do: tell user what it was (nesting,...) */
|
||||||
rb->lcd_clear_display();
|
rb->splash(0, "Failed to gather information");
|
||||||
rb->lcd_puts(0,0,"Failed to gather information");
|
|
||||||
rb->lcd_update();
|
|
||||||
|
|
||||||
rb->action_userabort(TIMEOUT_BLOCK);
|
rb->action_userabort(TIMEOUT_BLOCK);
|
||||||
return PLUGIN_OK;
|
return PLUGIN_OK;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue