From abde0f51b3062c158fb52e9dfff23d21d3be03d1 Mon Sep 17 00:00:00 2001 From: Yohann Ferreira Date: Sun, 11 Jul 2010 20:05:44 +0200 Subject: Made the different hard-coded paths and files be now taken from the data/paths.xml configuration file. Also added default gui theme path in branding and default wallpaper path and file searched respectively in the branding and paths.xml files. Hard-coded values are still used as fallbacks. Resolves: Manasource Mantis #148. Reviewed-by: jaxad0127. --- src/client.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/client.cpp') diff --git a/src/client.cpp b/src/client.cpp index 4b6d3744..ac10112e 100644 --- a/src/client.cpp +++ b/src/client.cpp @@ -109,6 +109,7 @@ LoginData loginData; Configuration config; /**< XML file configuration reader */ Configuration branding; /**< XML branding information reader */ +Configuration paths; /**< XML default paths information reader */ Logger *logger; /**< Log object */ KeyboardConfig keyboard; @@ -727,6 +728,9 @@ int Client::exec() false); } + // Read default paths file 'data/paths.xml' + paths.init("paths.xml", true); + // Load XML databases ColorDB::load(); ItemDB::load(); -- cgit v1.2.3-60-g2f50