aboutsummaryrefslogtreecommitdiffstats
path: root/src/config.cpp
diff options
context:
space:
mode:
authordrumsetmonkey <abelleisle@roadrunner.com>2016-02-03 08:43:55 -0500
committerdrumsetmonkey <abelleisle@roadrunner.com>2016-02-03 08:43:55 -0500
commit00c312051599729074ff3584a0528c1883e1ff42 (patch)
tree1778fa2382922d7ef50b787e444946a640e9033a /src/config.cpp
parentf00c4bb6b0c4dc1cf2f0c122a4748288ac6ab1a5 (diff)
parent7ab072caaaec09720ad79cfed5738e89bc60c44f (diff)
Mouse
Diffstat (limited to 'src/config.cpp')
-rw-r--r--src/config.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/config.cpp b/src/config.cpp
index df15e05..87d0f98 100644
--- a/src/config.cpp
+++ b/src/config.cpp
@@ -14,7 +14,6 @@ XMLDocument xml;
XMLElement *scr;
XMLElement *vol;
-
void readConfig(){
xml.LoadFile("config/settings.xml");
scr = xml.FirstChildElement("screen");
@@ -32,7 +31,7 @@ void readConfig(){
void updateConfig(){
vol->FirstChildElement("master")->SetAttribute("volume",VOLUME_MASTER);
vol->FirstChildElement("music")->SetAttribute("volume",VOLUME_MUSIC);
-
+
Mix_Volume(0,VOLUME_MASTER);
Mix_VolumeMusic(VOLUME_MUSIC);
@@ -40,4 +39,4 @@ void updateConfig(){
void saveConfig(){
xml.SaveFile("config/settings.xml", false);
-} \ No newline at end of file
+}