diff options
Diffstat (limited to 'src/config.cpp')
-rw-r--r-- | src/config.cpp | 5 |
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 +} |