summaryrefslogtreecommitdiff
path: root/src/gui/theme.cpp
diff options
context:
space:
mode:
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()))