diff -r 2e836bebb518 -r 453917e94e55 QTfrontend/ui/widget/chatwidget.cpp --- a/QTfrontend/ui/widget/chatwidget.cpp Wed Nov 14 00:23:29 2012 +0100 +++ b/QTfrontend/ui/widget/chatwidget.cpp Thu Nov 22 00:41:53 2012 +0100 @@ -64,7 +64,7 @@ if (orgStyleSheet.isEmpty()) { // load external stylesheet if there is any - QFile extFile(DataManager::instance().findFileForRead("css/chat.css")); + QFile extFile("physfs://css/chat.css"); QFile resFile(":/res/css/chat.css"); @@ -194,12 +194,10 @@ foreach (QString vp, vpList) { - m_helloSounds.append(DataManager::instance().findFileForRead( - QString("Sounds/voices/%1/Hello.ogg").arg(vp))); + m_helloSounds.append(QString("physfs://Sounds/voices/%1/Hello.ogg").arg(vp)); } - m_hilightSound = DataManager::instance().findFileForRead( - "Sounds/beep.ogg"); + m_hilightSound = "physfs://Sounds/beep.ogg"; } @@ -762,8 +760,7 @@ void HWChatWidget::saveStyleSheet() { - QString dest = - DataManager::instance().findFileForWrite("css/chat.css"); + QString dest = "physfs://css/chat.css"; QFile file(dest); if (file.open(QIODevice::WriteOnly | QIODevice::Text))