Fixed: Music player loading non-existing files into playlist.
--HG-- branch : develop
This commit is contained in:
parent
86adf11579
commit
2eab033283
1 changed files with 5 additions and 0 deletions
|
@ -353,6 +353,11 @@ public:
|
|||
continue;
|
||||
}
|
||||
|
||||
if (!CFile::fileExists(filenames[i])) {
|
||||
nlwarning("Ignore non-existing file '%s'", filenames[i].c_str());
|
||||
continue;
|
||||
}
|
||||
|
||||
CMusicPlayer::CSongs song;
|
||||
song.Filename = filenames[i];
|
||||
SoundMngr->getMixer()->getSongTitle(filenames[i], song.Title, song.Length);
|
||||
|
|
Loading…
Reference in a new issue