diff options
author | drumsetmonkey <abelleisle@roadrunner.com> | 2016-04-04 07:32:15 -0400 |
---|---|---|
committer | drumsetmonkey <abelleisle@roadrunner.com> | 2016-04-04 07:32:15 -0400 |
commit | a45daeda3633bdf25267a0186b39618269dca970 (patch) | |
tree | dea5bfdbadadc6d7cbd51fb0c760e5a5760959fb /src/config.cpp | |
parent | ba627aebb20e19b800133abe24fb7d9e650055c3 (diff) |
XML folder changing
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(); |