Unified how pathes are interpreted in config.xml.
This commit is contained in:
parent
97329141bc
commit
431a9e58b1
@ -97,7 +97,7 @@ void Application::setFarPlane(float farPlane) {
|
||||
}
|
||||
|
||||
void Application::setCompositionsPath(std::string compositionsPath) {
|
||||
this->compositionsPath = compositionsPath;
|
||||
this->compositionsPath = "../" + compositionsPath;
|
||||
}
|
||||
|
||||
void Application::setShaderPath(std::string shaderPath) {
|
||||
@ -113,15 +113,15 @@ void Application::setTexturePath(std::string texturePath) {
|
||||
}
|
||||
|
||||
void Application::setScriptPath(std::string scriptPath) {
|
||||
this->scriptPath = scriptPath;
|
||||
this->scriptPath = "../" + scriptPath;
|
||||
}
|
||||
|
||||
void Application::setHeightmapPath(std::string heightmapPath) {
|
||||
this->heightmapPath = heightmapPath;
|
||||
this->heightmapPath = "../" + heightmapPath;
|
||||
}
|
||||
|
||||
void Application::setLevelXmlPath(std::string levelXmlPath) {
|
||||
this->levelXmlPath = levelXmlPath;
|
||||
this->levelXmlPath = "../" + levelXmlPath;
|
||||
}
|
||||
|
||||
void Application::setMaxShadowRenderCount(int count) {
|
||||
|
@ -9,7 +9,7 @@
|
||||
|
||||
<maxShadowRenderCount>10</maxShadowRenderCount>
|
||||
|
||||
<compositionsPath>../data/levels/Compositions.xml</compositionsPath>
|
||||
<compositionsPath>data/levels/Compositions.xml</compositionsPath>
|
||||
|
||||
<shaderPath>data/shader/</shaderPath>
|
||||
|
||||
@ -17,8 +17,8 @@
|
||||
|
||||
<texturePath>data/textures/</texturePath>
|
||||
|
||||
<scriptPath>../data/levels/scripts/</scriptPath>
|
||||
<scriptPath>data/levels/scripts/</scriptPath>
|
||||
|
||||
<heightmapPath>../data/levels/</heightmapPath>
|
||||
<heightmapPath>data/levels/</heightmapPath>
|
||||
|
||||
<levelXmlPath>../data/levels/</levelXmlPath>
|
||||
<levelXmlPath>data/levels/</levelXmlPath>
|
||||
|
Loading…
Reference in New Issue
Block a user