Fixed non-working WPS on the player. Removed some TABs.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8151 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Jens Arnold 2005-12-05 02:07:13 +00:00
parent bca54ec55e
commit f667b87ec9
2 changed files with 9 additions and 8 deletions

View file

@ -986,9 +986,10 @@ void gui_wps_format(struct wps_data *data, const char *bmpdir,
wps_tag_found = true; wps_tag_found = true;
} }
if (*(buf+1) != 'x') if (*(buf+1) != 'x')
#endif
buf++; buf++;
break; break;
#endif
case '\r': /* CR */ case '\r': /* CR */
*buf = 0; *buf = 0;
break; break;

View file

@ -775,19 +775,19 @@ bool wps_data_load(struct wps_data *wps_data,
if (! strcmp(buf, WPS_DEFAULTCFG) ) if (! strcmp(buf, WPS_DEFAULTCFG) )
{ {
wps_reset(wps_data); wps_reset(wps_data);
global_settings.wps_file[0] = 0; global_settings.wps_file[0] = 0;
return false; return false;
} }
#ifdef HAVE_REMOTE_LCD #ifdef HAVE_REMOTE_LCD
if (! strcmp(buf, RWPS_DEFAULTCFG) ) if (! strcmp(buf, RWPS_DEFAULTCFG) )
{ {
wps_reset(wps_data); wps_reset(wps_data);
global_settings.rwps_file[0] = 0; global_settings.rwps_file[0] = 0;
return false; return false;
} }
#endif #endif
size_t bmpdirlen; size_t bmpdirlen;
char *bmpdir = strrchr(buf, '.'); char *bmpdir = strrchr(buf, '.');
bmpdirlen = bmpdir - buf; bmpdirlen = bmpdir - buf;