Don't keep trying to load a non-existing default.wps.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2444 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Björn Stenberg 2002-09-29 22:37:27 +00:00
parent 5f8ac6d677
commit 8254249380

View file

@ -117,6 +117,8 @@ bool wps_load_custom(char* file)
int fd;
bool special = true;
wps_loaded = true;
/* default wps file? */
if (!file) {
file = WPS_CONFIG;
@ -149,7 +151,6 @@ bool wps_load_custom(char* file)
sleep(HZ);
}
wps_loaded = true;
return numread > 0;
}