diff options
Diffstat (limited to 'src/config.cpp')
-rw-r--r-- | src/config.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/config.cpp b/src/config.cpp index 4f4ad89..2ee13d4 100644 --- a/src/config.cpp +++ b/src/config.cpp @@ -13,6 +13,8 @@ extern float VOLUME_MASTER; extern float VOLUME_MUSIC; extern float VOLUME_SFX; +extern std::string xmlFolder; + XMLDocument xml; XMLElement *scr; XMLElement *vol; @@ -52,6 +54,10 @@ namespace config { VOLUME_SFX = fval; else VOLUME_SFX = 50; + xmlFolder = xml.FirstChildElement("world")->Attribute("start"); + if(xmlFolder=="\0")xmlFolder = "xml/"; + std::cout << "Folder: " << xmlFolder << std::endl; + ui::initFonts(); ui::setFontFace(xml.FirstChildElement("font")->Attribute("path")); config::update(); |