diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-02-27 02:44:23 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-02-27 02:45:53 +0300 |
commit | 481bbd254103fc9d6dc98b19a5226f8868c8c5d9 (patch) | |
tree | 426856951ad81ccb69b43fc53a2ae76861f30fff /src/gui/theme.cpp | |
parent | e5272cde78d23a297dad05976e8579b3e5759de4 (diff) | |
download | ManaVerse-481bbd254103fc9d6dc98b19a5226f8868c8c5d9.tar.gz ManaVerse-481bbd254103fc9d6dc98b19a5226f8868c8c5d9.tar.bz2 ManaVerse-481bbd254103fc9d6dc98b19a5226f8868c8c5d9.tar.xz ManaVerse-481bbd254103fc9d6dc98b19a5226f8868c8c5d9.zip |
Add sliderlist setup item.
Diffstat (limited to 'src/gui/theme.cpp')
-rw-r--r-- | src/gui/theme.cpp | 19 |
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(); |