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/effectmanager.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/effectmanager.cpp')
-rw-r--r-- | src/effectmanager.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/effectmanager.cpp b/src/effectmanager.cpp index 52e848463..f76f3ebd0 100644 --- a/src/effectmanager.cpp +++ b/src/effectmanager.cpp @@ -23,6 +23,7 @@ #include "effectmanager.h" #include "being.h" +#include "configuration.h" #include "logger.h" #include "particle.h" #include "soundmanager.h" @@ -32,12 +33,13 @@ EffectManager::EffectManager() : mEffects() { - XML::Document doc("effects.xml"); + XML::Document doc(paths.getStringValue("effectsFile")); const XmlNodePtr root = doc.rootNode(); if (!root || !xmlNameEqual(root, "being-effects")) { - logger->log1("Error loading being effects file: effects.xml"); + logger->log("Error loading being effects file: " + + paths.getStringValue("effectsFile")); return; } else |