diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-05-26 15:47:39 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-05-26 15:47:39 +0300 |
commit | 9fe86d302838c62034c0bf6c74d8ca47722bd40b (patch) | |
tree | 58aa24b936547f3489788d5afb1045c89d5029fa /src/resources/sounddb.cpp | |
parent | 61e3fa8513c1bc2644348ac6052ab87785fb119d (diff) | |
download | manaverse-9fe86d302838c62034c0bf6c74d8ca47722bd40b.tar.gz manaverse-9fe86d302838c62034c0bf6c74d8ca47722bd40b.tar.bz2 manaverse-9fe86d302838c62034c0bf6c74d8ca47722bd40b.tar.xz manaverse-9fe86d302838c62034c0bf6c74d8ca47722bd40b.zip |
dehardcode client data configuration file names.
Now names stored in paths.xml
Diffstat (limited to 'src/resources/sounddb.cpp')
-rw-r--r-- | src/resources/sounddb.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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")) |