Fixed: Playing music files with @ in the filename.

--HG--
branch : develop
This commit is contained in:
Nimetu 2018-11-04 18:15:27 +02:00
parent edf1d12f65
commit 6c8e42361a

View file

@ -415,14 +415,6 @@ public:
std::vector<CMusicPlayer::CSongs> songs; std::vector<CMusicPlayer::CSongs> songs;
for (i=0; i<filenames.size(); i++) for (i=0; i<filenames.size(); i++)
{ {
// '@' in filenames are reserved for .bnp files
// and sound system fails to open such file
if (filenames[i].find("@") != string::npos)
{
nlwarning("Ignore media file containing '@' in name: '%s'", filenames[i].c_str());
continue;
}
if (!CFile::fileExists(filenames[i])) { if (!CFile::fileExists(filenames[i])) {
nlwarning("Ignore non-existing file '%s'", filenames[i].c_str()); nlwarning("Ignore non-existing file '%s'", filenames[i].c_str());
continue; continue;