myQtHelper->getDataPath() removed

This commit is contained in:
doitux
2007-09-08 22:01:30 +00:00
parent d3be07bb17
commit 26390ac1a7
12 changed files with 66 additions and 35 deletions
+2 -2
View File
@@ -25,7 +25,7 @@ SDLPlayer::SDLPlayer(ConfigFile *c)
SDL_Init(SDL_INIT_AUDIO);
initAudio();
myQtHelper = new QtHelper;
myAppDataPath = QString::fromUtf8(myConfig->readConfigString("AppDataDir").c_str());
}
@@ -56,7 +56,7 @@ void SDLPlayer::playSound(string audioString, int playerID) {
if(audioEnabled && myConfig->readConfigInt("PlaySoundEffects")) {
QFile myFile(myQtHelper->getDataPath() + "sounds/default/" + QString::fromStdString(audioString)+".wav");
QFile myFile(myAppDataPath + "sounds/default/" + QString::fromStdString(audioString)+".wav");
if(myFile.open(QIODevice::ReadOnly)) {