--- a/QTfrontend/model/HatModel.cpp Sat Nov 17 22:07:17 2012 +0400
+++ b/QTfrontend/model/HatModel.cpp Sat Nov 17 22:45:30 2012 +0400
@@ -46,9 +46,7 @@
DataManager & dataMgr = DataManager::instance();
- QPixmap hhpix = QPixmap(
- dataMgr.findFileForRead("Graphics/Hedgehog/Idle.png")
- ).copy(0, 0, 32, 32);
+ QPixmap hhpix = QPixmap("physfs://Graphics/Hedgehog/Idle.png").copy(0, 0, 32, 32);
// my reserved hats
QStringList hatsList = dataMgr.entryList(
@@ -76,11 +74,9 @@
QString str = hatsList.at(i);
str = str.remove(QRegExp("\\.png$"));
- QPixmap pix(
- dataMgr.findFileForRead(
- "Graphics/Hats/" + QString(isReserved?"Reserved/":"") + str +
- ".png"
- )
+ QPixmap pix(
+ "physfs://Graphics/Hats/" + QString(isReserved?"Reserved/":"") + str +
+ ".png"
);
// rename properly