From e888d7df0e5538afbeccd3b5a24a06ce6c8cf375 Mon Sep 17 00:00:00 2001 From: Faerbit Date: Sat, 14 Mar 2015 14:57:42 +0100 Subject: [PATCH] Had to split the level xml path and the level xml name to properly work with the converter. --- data/config.xml | 3 ++- game/loader.cc | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/data/config.xml b/data/config.xml index 9b692df..81c106d 100644 --- a/data/config.xml +++ b/data/config.xml @@ -21,7 +21,8 @@ data/levels/ -data/levels/Level1.xml +data/levels/ +Level1.xml diff --git a/game/loader.cc b/game/loader.cc index 9c1c921..df0f17b 100644 --- a/game/loader.cc +++ b/game/loader.cc @@ -27,7 +27,8 @@ void Loader::loadConfig(Application* application) { application->setTexturePath(texturePath); application->setScriptPath(queryString(config, "scriptPath")); application->setHeightmapPath(queryString(config, "heightmapPath")); - application->setLevelXmlPath(queryString(config, "levelXmlPath")); + std::string levelXmlPath = queryString(config, "levelXmlPath"); + application->setLevelXmlPath(levelXmlPath + queryString(config, "levelXML")); XMLElement* loadingScreen = config->FirstChildElement("loadingScreen"); if (loadingScreen != NULL) { std::string screenPath = queryString(loadingScreen, "screenPath");