From a45daeda3633bdf25267a0186b39618269dca970 Mon Sep 17 00:00:00 2001 From: drumsetmonkey Date: Mon, 4 Apr 2016 07:32:15 -0400 Subject: XML folder changing --- src/config.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/config.cpp') 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(); -- cgit v1.2.3