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/game.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/game.cpp') diff --git a/src/game.cpp b/src/game.cpp index 79f21863..ec5e6b13 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -928,7 +928,8 @@ void Game::changeMap(const std::string &mapPath) mMapName = mapPath; - std::string fullMap = "maps/" + mapPath + ".tmx"; + std::string fullMap = paths.getValue("maps", "maps/") + + mMapName + ".tmx"; ResourceManager *resman = ResourceManager::getInstance(); if (!resman->exists(fullMap)) fullMap += ".gz"; -- cgit v1.2.3-70-g09d2