Fake an USB connections to force reload of the file-tree after running these viewers.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7434 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Jonas Häggqvist 2005-08-31 00:30:46 +00:00
parent e54aa2ab93
commit 68de2581ba
3 changed files with 8 additions and 2 deletions

View file

@ -85,7 +85,8 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter)
return PLUGIN_ERROR;
}
rb->splash(HZ*3, true, "FINISHED PLAYING");
return PLUGIN_OK;
/* Return PLUGIN_USB_CONNECTED to force a file-tree refresh */
return PLUGIN_USB_CONNECTED;
}
signed char outputBuffer[3000] IDATA_ATTR; /* signed char.. gonna run out of iram ... ! */

View file

@ -94,5 +94,9 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter)
}
rb->snprintf(buf,250,"Hits: %d",hits);
rb->splash(HZ*3,true,buf);
if (result!=0) {
/* Return PLUGIN_USB_CONNECTED to force a file-tree refresh */
return PLUGIN_USB_CONNECTED;
}
return PLUGIN_OK;
}

View file

@ -310,5 +310,6 @@ enum plugin_status plugin_start(struct plugin_api* api, void *parameter)
#ifdef HAVE_ADJUSTABLE_CPU_FREQ
rb->cpu_boost(false);
#endif
return PLUGIN_OK;
/* Return PLUGIN_USB_CONNECTED to force a file-tree refresh */
return PLUGIN_USB_CONNECTED;
}