Try to fix problem with playing music when path contains non-latin letters
authorunc0rr
Thu, 04 Dec 2008 21:17:03 +0000
changeset 1527 4a610e970b66
parent 1526 18e412dd7d50
child 1528 3fee15104c1d
Try to fix problem with playing music when path contains non-latin letters
QTfrontend/SDLs.cpp
--- a/QTfrontend/SDLs.cpp	Thu Dec 04 21:15:01 2008 +0000
+++ b/QTfrontend/SDLs.cpp	Thu Dec 04 21:17:03 2008 +0000
@@ -60,7 +60,7 @@
 void SDLInteraction::StartMusic()
 {
 	if (!music)
-		music = Mix_LoadMUS(QString(datadir->absolutePath() + "/Music/main theme.ogg").toAscii().constData());
+		music = Mix_LoadMUS(QString(datadir->absolutePath() + "/Music/main theme.ogg").toLocal8Bit().constData());
 
 	Mix_FadeInMusic(music, -1, 3000);
 }