next steps remove resources_qrc

This commit is contained in:
doitux
2007-08-29 21:10:33 +00:00
parent 3022f9f464
commit 264b6a0583
53 changed files with 164 additions and 991 deletions
+3 -1
View File
@@ -20,6 +20,8 @@ SDLPlayer::SDLPlayer(ConfigFile *c)
{
SDL_Init(SDL_INIT_AUDIO);
initAudio();
myQtHelper = new QtHelper;
}
@@ -50,7 +52,7 @@ void SDLPlayer::playSound(string audioString, int playerID) {
if(audioEnabled && myConfig->readConfigInt("PlaySoundEffects")) {
QFile myFile(":sounds/resources/sounds/"+QString::fromStdString(audioString)+".wav");
QFile myFile(myQtHelper->getDataPath() + "sounds/default/" + QString::fromStdString(audioString)+".wav");
if(myFile.open(QIODevice::ReadOnly)) {