From 5a8a5b54f550f3778b30e4ff380c57f18473da8d Mon Sep 17 00:00:00 2001 From: Björn Stenberg Date: Mon, 17 Jun 2002 10:17:50 +0000 Subject: Added backslash and drive letter support git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1029 a1c6a512-1295-4272-9138-f99709370657 --- apps/playlist.c | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/apps/playlist.c b/apps/playlist.c index 2e21aef717..942a5785b1 100644 --- a/apps/playlist.c +++ b/apps/playlist.c @@ -39,6 +39,7 @@ char* playlist_next(int type) int seek = playlist.indices[playlist.index]; int max; int fd; + int i; (void)type; /* prevent compiler warning until this is gets used */ playlist.index = (playlist.index+1) % playlist.amount; @@ -57,12 +58,22 @@ char* playlist_next(int type) seek++; now_playing[seek]=0; + + /* replace backslashes with forward slashes */ + for ( i=1; i