diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-02-14 18:00:20 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-02-14 18:00:20 +0300 |
commit | 5283a59db971ec2038149bf26ad9b3cbc4924449 (patch) | |
tree | c2f208b197a3726d6358ca707b64d01887bb6151 /src/gui | |
parent | 59146da772888a295bbf8613f32bce5dd7bb00ab (diff) | |
download | manaverse-5283a59db971ec2038149bf26ad9b3cbc4924449.tar.gz manaverse-5283a59db971ec2038149bf26ad9b3cbc4924449.tar.bz2 manaverse-5283a59db971ec2038149bf26ad9b3cbc4924449.tar.xz manaverse-5283a59db971ec2038149bf26ad9b3cbc4924449.zip |
Add virtlist for file names enumeration in virtfs.
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/theme.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/gui/theme.cpp b/src/gui/theme.cpp index a60b01e99..96f09d324 100644 --- a/src/gui/theme.cpp +++ b/src/gui/theme.cpp @@ -47,6 +47,7 @@ #include "utils/dtor.h" #include "utils/files.h" #include "utils/virtfs.h" +#include "utils/virtlist.h" #include "debug.h" @@ -577,10 +578,10 @@ void Theme::fillFontsList(StringVect &list) void Theme::fillSoundsList(StringVect &list) { - char **skins = VirtFs::enumerateFiles( - branding.getStringValue("systemsounds").c_str()); + VirtList *const skins = VirtFs::enumerateFiles( + branding.getStringValue("systemsounds")); - for (char **i = skins; *i; i++) + FOR_EACH (StringVectCIter, i, skins->names) { if (!VirtFs::isDirectory(( branding.getStringValue("systemsounds") + *i).c_str())) |