aboutsummaryrefslogtreecommitdiffstats
path: root/src/config.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/config.cpp')
-rw-r--r--src/config.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/config.cpp b/src/config.cpp
index 8ec361d..ca6db1b 100644
--- a/src/config.cpp
+++ b/src/config.cpp
@@ -1,5 +1,7 @@
#include <config.h>
+#include <ui.h>
+
using namespace tinyxml2;
extern unsigned int HLINE;
@@ -44,7 +46,10 @@ void readConfig(){
VOLUME_MASTER = vol->FirstChildElement("master")->FloatAttribute("volume");
VOLUME_MUSIC = vol->FirstChildElement("music")->FloatAttribute("volume");
VOLUME_SFX = vol->FirstChildElement("sfx")->FloatAttribute("volume");
-
+
+ std::cout<<"Loading font through settings.xml..."<<std::endl;
+ ui::initFonts();
+ ui::setFontFace(xml.FirstChildElement("font")->Attribute("path"));
}
void updateConfig(){