summaryrefslogtreecommitdiff
path: root/src/gui/theme.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-02-27 02:44:23 +0300
committerAndrei Karas <akaras@inbox.ru>2012-02-27 02:45:53 +0300
commit481bbd254103fc9d6dc98b19a5226f8868c8c5d9 (patch)
tree426856951ad81ccb69b43fc53a2ae76861f30fff /src/gui/theme.cpp
parente5272cde78d23a297dad05976e8579b3e5759de4 (diff)
downloadmv-481bbd254103fc9d6dc98b19a5226f8868c8c5d9.tar.gz
mv-481bbd254103fc9d6dc98b19a5226f8868c8c5d9.tar.bz2
mv-481bbd254103fc9d6dc98b19a5226f8868c8c5d9.tar.xz
mv-481bbd254103fc9d6dc98b19a5226f8868c8c5d9.zip
Add sliderlist setup item.
Diffstat (limited to 'src/gui/theme.cpp')
-rw-r--r--src/gui/theme.cpp19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/gui/theme.cpp b/src/gui/theme.cpp
index 85fd215ac..3a09810d0 100644
--- a/src/gui/theme.cpp
+++ b/src/gui/theme.cpp
@@ -569,6 +569,25 @@ void Theme::fillFontsList(std::vector<std::string> &list)
PHYSFS_permitSymbolicLinks(0);
}
+void Theme::fillSoundsList(std::vector<std::string> &list)
+{
+ char **skins = PHYSFS_enumerateFiles(
+ branding.getStringValue("systemsounds").c_str());
+
+ for (char **i = skins; *i; i++)
+ {
+ if (!PHYSFS_isDirectory((
+ branding.getStringValue("systemsounds") + *i).c_str()))
+ {
+ std::string str = *i;
+ if (findCutLast(str, ".ogg"))
+ list.push_back(str);
+ }
+ }
+
+ PHYSFS_freeList(skins);
+}
+
void Theme::selectSkin()
{
prepareThemePath();