1
0
Fork 0
forked from len0rd/rockbox

The splash() function's second argument (keymask) is now removed, as it

was not used by any code.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4201 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Daniel Stenberg 2004-01-08 09:58:58 +00:00
parent fe706d2754
commit 1afa395c2f
18 changed files with 95 additions and 100 deletions

View file

@ -191,7 +191,7 @@ int plugin_load(char* plugin, void* parameter)
pd = dlopen(path, RTLD_NOW);
if (!pd) {
snprintf(buf, sizeof buf, "Can't open %s", plugin);
splash(HZ*2, 0, true, buf);
splash(HZ*2, true, buf);
DEBUGF("dlopen(%s): %s\n",path,dlerror());
dlclose(pd);
return -1;
@ -201,7 +201,7 @@ int plugin_load(char* plugin, void* parameter)
if (!plugin_start) {
plugin_start = dlsym(pd, "_plugin_start");
if (!plugin_start) {
splash(HZ*2, 0, true, "Can't find entry point");
splash(HZ*2, true, "Can't find entry point");
dlclose(pd);
return -1;
}
@ -210,7 +210,7 @@ int plugin_load(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, 0, true, buf);
splash(HZ*2, true, buf);
return fd;
}
@ -220,12 +220,12 @@ int plugin_load(char* plugin, void* parameter)
if (plugin_size < 0) {
/* read error */
snprintf(buf, sizeof buf, str(LANG_READ_FAILED), plugin);
splash(HZ*2, 0, true, buf);
splash(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, 0, true, str(LANG_PLUGIN_WRONG_MODEL));
splash(HZ*2, true, str(LANG_PLUGIN_WRONG_MODEL));
return -1;
}
#endif
@ -242,15 +242,15 @@ int plugin_load(char* plugin, void* parameter)
return PLUGIN_USB_CONNECTED;
case PLUGIN_WRONG_API_VERSION:
splash(HZ*2, 0, true, str(LANG_PLUGIN_WRONG_VERSION));
splash(HZ*2, true, str(LANG_PLUGIN_WRONG_VERSION));
break;
case PLUGIN_WRONG_MODEL:
splash(HZ*2, 0, true, str(LANG_PLUGIN_WRONG_MODEL));
splash(HZ*2, true, str(LANG_PLUGIN_WRONG_MODEL));
break;
default:
splash(HZ*2, 0, true, str(LANG_PLUGIN_ERROR));
splash(HZ*2, true, str(LANG_PLUGIN_ERROR));
break;
}