diff options
author | Thomas Martitz <kugel@rockbox.org> | 2012-09-24 09:43:36 +0200 |
---|---|---|
committer | Thomas Martitz <kugel@rockbox.org> | 2012-09-24 09:47:03 +0200 |
commit | c555938ea0da97b2538530c1da9aeae4822bece7 (patch) | |
tree | 75388d3f00b9324104bf0d83d65e854fab463d0b /tools/checkwps | |
parent | e3cd7ec70bf80d55d1fb121f6b6c0c7fdcef5be0 (diff) | |
download | rockbox-c555938ea0da97b2538530c1da9aeae4822bece7.tar.gz rockbox-c555938ea0da97b2538530c1da9aeae4822bece7.tar.bz2 rockbox-c555938ea0da97b2538530c1da9aeae4822bece7.zip |
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
Diffstat (limited to 'tools/checkwps')
-rw-r--r-- | tools/checkwps/checkwps.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/tools/checkwps/checkwps.c b/tools/checkwps/checkwps.c index 3ee2908088..06f88bbbbf 100644 --- a/tools/checkwps/checkwps.c +++ b/tools/checkwps/checkwps.c @@ -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"); |