summaryrefslogtreecommitdiff
path: root/src/gui/theme.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-02-14 18:00:20 +0300
committerAndrei Karas <akaras@inbox.ru>2017-02-14 18:00:20 +0300
commit5283a59db971ec2038149bf26ad9b3cbc4924449 (patch)
treec2f208b197a3726d6358ca707b64d01887bb6151 /src/gui/theme.cpp
parent59146da772888a295bbf8613f32bce5dd7bb00ab (diff)
downloadmv-5283a59db971ec2038149bf26ad9b3cbc4924449.tar.gz
mv-5283a59db971ec2038149bf26ad9b3cbc4924449.tar.bz2
mv-5283a59db971ec2038149bf26ad9b3cbc4924449.tar.xz
mv-5283a59db971ec2038149bf26ad9b3cbc4924449.zip
Add virtlist for file names enumeration in virtfs.
Diffstat (limited to 'src/gui/theme.cpp')
-rw-r--r--src/gui/theme.cpp7
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()))