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:
parent
e3cd7ec70b
commit
c555938ea0
1 changed files with 9 additions and 3 deletions
|
@ -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");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue