CheckWPS: set screen to SCREEN_MAIN when not a r{sb,wp}s.

This fixes the potential bug of mislabeling an {sb,wp}s as remote while it's not.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23668 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Maurus Cuelenaere 2009-11-19 22:14:21 +00:00
parent d236af05a0
commit c28752b1af

View file

@ -274,6 +274,8 @@ int main(int argc, char **argv)
if((strcmp(&argv[filearg][strlen(argv[filearg])-4], "rwps") == 0) ||
(strcmp(&argv[filearg][strlen(argv[filearg])-4], "rsbs") == 0))
screen = SCREEN_REMOTE;
else
screen = SCREEN_MAIN;
#endif
wps_screen = &screens[screen];