1
0
Fork 0
forked from len0rd/rockbox

checkwps: Do not error out on rwps for non-remote targets.

This breaks themes on the theme site (that ship an rwps for remote targets) for
non-remote targets. As rockbox just ignores the rwps checkwps now does the same.

Change-Id: Id8c7833f0bd88d239dce87711456b94c93480a51
This commit is contained in:
Thomas Martitz 2012-09-24 09:43:36 +02:00
parent e3cd7ec70b
commit c555938ea0

View file

@ -301,13 +301,19 @@ int main(int argc, char **argv)
return 2;
}
ext++;
#ifdef HAVE_REMOTE_LCD
if (!strcmp(ext, "rwps") || !strcmp(ext, "rsbs") || !strcmp(ext, "rfms"))
{
#ifdef HAVE_REMOTE_LCD
screen = SCREEN_REMOTE;
else
#else
/* skip rwps etc. if not supported on this target (not an error) */
continue;
#endif
if (!strcmp(ext, "wps") || !strcmp(ext, "sbs") || !strcmp(ext, "fms"))
}
else if (!strcmp(ext, "wps") || !strcmp(ext, "sbs") || !strcmp(ext, "fms"))
{
screen = SCREEN_MAIN;
}
else
{
printf("Invalid extension\n");