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/client.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/client.cpp') 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()); } -- cgit v1.2.3-70-g09d2