mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-29 16:31:05 +02:00
screensaver: just add mp3-?.jpg when using DATADIR "/neutrino/icons" ...
... to get the same behavior as usual
Origin commit data
------------------
Branch: ni/coolstream
Commit: 4cf5e8ffd1
Author: vanhofen <vanhofen@gmx.de>
Date: 2014-12-24 (Wed, 24 Dec 2014)
Origin message was:
------------------
- screensaver: just add mp3-?.jpg when using DATADIR "/neutrino/icons" ...
... to get the same behavior as usual
------------------
This commit was generated by Migit
This commit is contained in:
@@ -161,6 +161,18 @@ bool CScreenSaver::ReadDir()
|
|||||||
|
|
||||||
str += "/";
|
str += "/";
|
||||||
str += (*dirpointer).d_name;
|
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);
|
v_bg_files.push_back(str);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user