summaryrefslogtreecommitdiff
path: root/src/client.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-05-26 15:47:39 +0300
committerAndrei Karas <akaras@inbox.ru>2013-05-26 15:47:39 +0300
commit9fe86d302838c62034c0bf6c74d8ca47722bd40b (patch)
tree58aa24b936547f3489788d5afb1045c89d5029fa /src/client.cpp
parent61e3fa8513c1bc2644348ac6052ab87785fb119d (diff)
downloadplus-9fe86d302838c62034c0bf6c74d8ca47722bd40b.tar.gz
plus-9fe86d302838c62034c0bf6c74d8ca47722bd40b.tar.bz2
plus-9fe86d302838c62034c0bf6c74d8ca47722bd40b.tar.xz
plus-9fe86d302838c62034c0bf6c74d8ca47722bd40b.zip
dehardcode client data configuration file names.
Now names stored in paths.xml
Diffstat (limited to 'src/client.cpp')
-rw-r--r--src/client.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client.cpp b/src/client.cpp
index fd78d747e..395f148a6 100644
--- a/src/client.cpp
+++ b/src/client.cpp
@@ -1425,7 +1425,7 @@ int Client::gameExec()
+ mUpdatesDir + "/local/", false);
}
- // Read default paths file 'data/paths.xml'
+ logger->log("Init paths");
paths.init("paths.xml", true);
paths.setDefaultValues(getPathsDefaults());
if (!SpriteReference::Empty)
@@ -2057,7 +2057,7 @@ void Client::initServerConfig(std::string serverName)
void Client::initFeatures() const
{
- features.init("features.xml", true);
+ features.init(paths.getStringValue("featuresFile"), true);
paths.setDefaultValues(getFeaturesDefaults());
}