add support for browsing local filesystem

This commit is contained in:
unK
2008-10-27 20:35:02 +01:00
parent e1202f2dfe
commit beee0bc9d3
15 changed files with 346 additions and 170 deletions

View File

@@ -61,11 +61,11 @@ Song::Song(mpd_Song *s, bool copy_ptr) : itsSong(s),
isStream = 1;
// generate pseudo-hash
for (int i = 0; i < strlen(itsSong->file); i++)
for (int i = 0; i < itsFile.length(); i++)
{
itsHash += itsSong->file[i];
if (i%2)
itsHash *= itsSong->file[i];
itsHash += itsFile[i];
if (i%3)
itsHash *= itsFile[i];
}
}