Had to split the level xml path and the level xml name to properly work with the converter.

This commit is contained in:
Faerbit 2015-03-14 14:57:42 +01:00
parent dfaf8c0965
commit e888d7df0e
2 changed files with 4 additions and 2 deletions

View File

@ -21,7 +21,8 @@
<heightmapPath>data/levels/</heightmapPath>
<levelXmlPath>data/levels/Level1.xml</levelXmlPath>
<levelXmlPath>data/levels/</levelXmlPath>
<levelXML>Level1.xml</levelXML>
<!-- must be located in the textures directory -->
<loadingScreen>

View File

@ -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");