diff options
| author | Kevin Ferrare <kevin@rockbox.org> | 2005-11-16 15:12:15 +0000 |
|---|---|---|
| committer | Kevin Ferrare <kevin@rockbox.org> | 2005-11-16 15:12:15 +0000 |
| commit | e991beed6df8700b41796c4c14ef786f45fb54c5 (patch) | |
| tree | 63543693276236f18a91c3de87e2353625eb85dc /apps/plugin.c | |
| parent | 76b75efa060b55bc7cbf66bae3401af57d907440 (diff) | |
| download | rockbox-e991beed6df8700b41796c4c14ef786f45fb54c5.zip rockbox-e991beed6df8700b41796c4c14ef786f45fb54c5.tar.gz rockbox-e991beed6df8700b41796c4c14ef786f45fb54c5.tar.bz2 rockbox-e991beed6df8700b41796c4c14ef786f45fb54c5.tar.xz | |
replaced all the splash calls by gui_sync_splash, added some missing remote key in the playlist viewer
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7909 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugin.c')
| -rw-r--r-- | apps/plugin.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/apps/plugin.c b/apps/plugin.c index b1560c7..a30b089 100644 --- a/apps/plugin.c +++ b/apps/plugin.c @@ -48,6 +48,7 @@ #include "timer.h" #include "sound.h" #include "database.h" +#include "splash.h" #if (CONFIG_CODEC == SWCODEC) #include "pcm_playback.h" #endif @@ -138,7 +139,7 @@ static const struct plugin_api rockbox_api = { backlight_on, backlight_off, backlight_set_timeout, - splash, + gui_syncsplash, #ifdef HAVE_REMOTE_LCD /* remote lcd */ lcd_remote_set_contrast, @@ -400,7 +401,7 @@ int plugin_load(const char* plugin, void* parameter) fd = open(plugin, O_RDONLY); if (fd < 0) { snprintf(buf, sizeof buf, str(LANG_PLUGIN_CANT_OPEN), plugin); - splash(HZ*2, true, buf); + gui_syncsplash(HZ*2, true, buf); return fd; } @@ -413,12 +414,12 @@ int plugin_load(const char* plugin, void* parameter) if (plugin_size < 0) { /* read error */ snprintf(buf, sizeof buf, str(LANG_READ_FAILED), plugin); - splash(HZ*2, true, buf); + gui_syncsplash(HZ*2, true, buf); return -1; } if (plugin_size == 0) { /* loaded a 0-byte plugin, implying it's not for this model */ - splash(HZ*2, true, str(LANG_PLUGIN_WRONG_MODEL)); + gui_syncsplash(HZ*2, true, str(LANG_PLUGIN_WRONG_MODEL)); return -1; } #endif @@ -450,15 +451,15 @@ int plugin_load(const char* plugin, void* parameter) return PLUGIN_USB_CONNECTED; case PLUGIN_WRONG_API_VERSION: - splash(HZ*2, true, str(LANG_PLUGIN_WRONG_VERSION)); + gui_syncsplash(HZ*2, true, str(LANG_PLUGIN_WRONG_VERSION)); break; case PLUGIN_WRONG_MODEL: - splash(HZ*2, true, str(LANG_PLUGIN_WRONG_MODEL)); + gui_syncsplash(HZ*2, true, str(LANG_PLUGIN_WRONG_MODEL)); break; default: - splash(HZ*2, true, str(LANG_PLUGIN_ERROR)); + gui_syncsplash(HZ*2, true, str(LANG_PLUGIN_ERROR)); break; } |