forked from len0rd/rockbox
better USB handling, typo fixed
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4174 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
c561e53948
commit
9eb03c1043
1 changed files with 6 additions and 2 deletions
|
@ -330,6 +330,7 @@ int main(char* filename)
|
||||||
|
|
||||||
enum plugin_status plugin_start(struct plugin_api* api, void* parameter)
|
enum plugin_status plugin_start(struct plugin_api* api, void* parameter)
|
||||||
{
|
{
|
||||||
|
int ret;
|
||||||
/* this macro should be called as the first thing you do in the plugin.
|
/* this macro should be called as the first thing you do in the plugin.
|
||||||
it test that the api version and model the plugin was compiled for
|
it test that the api version and model the plugin was compiled for
|
||||||
matches the machine it is running on */
|
matches the machine it is running on */
|
||||||
|
@ -339,12 +340,15 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter)
|
||||||
|
|
||||||
if (parameter == NULL)
|
if (parameter == NULL)
|
||||||
{
|
{
|
||||||
rb->splash(HZ*2, 0, true, "play .rfv file");
|
rb->splash(HZ*2, 0, true, "Play .rvf file!");
|
||||||
return PLUGIN_ERROR;
|
return PLUGIN_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* now go ahead and have fun! */
|
/* now go ahead and have fun! */
|
||||||
return main((char*) parameter);
|
ret = main((char*) parameter);
|
||||||
|
if (ret==PLUGIN_USB_CONNECTED)
|
||||||
|
rb->usb_screen();
|
||||||
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /* #ifdef HAVE_LCD_BITMAP */
|
#endif /* #ifdef HAVE_LCD_BITMAP */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue