QTfrontend/SDLs.cpp
changeset 5238 46ddaf14509d
parent 5085 e8944ed92b61
child 5252 ded882439548
--- a/QTfrontend/SDLs.cpp	Sun Jun 12 14:45:26 2011 -0400
+++ b/QTfrontend/SDLs.cpp	Sun Jun 12 21:06:48 2011 -0400
@@ -164,9 +164,12 @@
 void SDLInteraction::StartMusic()
 {
     SDLMusicInit();
+    QFile tmpfile;
 
+    tmpfile.setFileName(cfgdir->absolutePath() + "/Data/Music/main_theme.ogg");
+    if (!tmpfile.exists()) tmpfile.setFileName(datadir->absolutePath() + "/Music/main_theme.ogg");
     if (music == NULL) {
-        music = Mix_LoadMUS((datadir->absolutePath() + "/Music/main_theme.ogg").toLocal8Bit().constData());
+        music = Mix_LoadMUS(QFileInfo(tmpfile).absoluteFilePath().toLocal8Bit().constData());
 
     }
     Mix_VolumeMusic(MIX_MAX_VOLUME - 28);