From 9fe86d302838c62034c0bf6c74d8ca47722bd40b Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 26 May 2013 15:47:39 +0300 Subject: dehardcode client data configuration file names. Now names stored in paths.xml --- src/resources/sounddb.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/resources/sounddb.cpp') diff --git a/src/resources/sounddb.cpp b/src/resources/sounddb.cpp index 9cf303322..beda71b88 100644 --- a/src/resources/sounddb.cpp +++ b/src/resources/sounddb.cpp @@ -21,6 +21,7 @@ #include "resources/sounddb.h" #include "client.h" +#include "configuration.h" #include "logger.h" #include "notifymanager.h" @@ -38,7 +39,7 @@ void SoundDB::load() { unload(); - XML::Document *doc = new XML::Document("sounds.xml"); + XML::Document *doc = new XML::Document(paths.getStringValue("soundsFile")); XmlNodePtr root = doc->rootNode(); if (!root || !xmlNameEqual(root, "sounds")) -- cgit v1.2.3-60-g2f50