Had to split the level xml path and the level xml name to properly work with the converter.
This commit is contained in:
parent
dfaf8c0965
commit
e888d7df0e
@ -21,7 +21,8 @@
|
|||||||
|
|
||||||
<heightmapPath>data/levels/</heightmapPath>
|
<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 -->
|
<!-- must be located in the textures directory -->
|
||||||
<loadingScreen>
|
<loadingScreen>
|
||||||
|
@ -27,7 +27,8 @@ void Loader::loadConfig(Application* application) {
|
|||||||
application->setTexturePath(texturePath);
|
application->setTexturePath(texturePath);
|
||||||
application->setScriptPath(queryString(config, "scriptPath"));
|
application->setScriptPath(queryString(config, "scriptPath"));
|
||||||
application->setHeightmapPath(queryString(config, "heightmapPath"));
|
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");
|
XMLElement* loadingScreen = config->FirstChildElement("loadingScreen");
|
||||||
if (loadingScreen != NULL) {
|
if (loadingScreen != NULL) {
|
||||||
std::string screenPath = queryString(loadingScreen, "screenPath");
|
std::string screenPath = queryString(loadingScreen, "screenPath");
|
||||||
|
Loading…
Reference in New Issue
Block a user