- screensaver: just add mp3-?.jpg when using DATADIR "/neutrino/icons" ...

... to get the same behavior as usual
This commit is contained in:
vanhofen
2014-12-24 23:21:57 +01:00
committed by svenhoefer
parent 20e49a492a
commit 4cf5e8ffd1

View File

@@ -161,6 +161,18 @@ bool CScreenSaver::ReadDir()
str += "/";
str += (*dirpointer).d_name;
if ((std::string) dir_name == DATADIR "/neutrino/icons")
{
/*
backward compatiblity:
just add the standard mp3-?.jpg pictures
to get the same behavior as usual
*/
if (str.find("/mp3-") == string::npos)
continue;
}
v_bg_files.push_back(str);
}
}