QTfrontend/main.cpp
branchphysfslayer
changeset 8049 133e22b5c410
parent 7955 85b3970b402a
child 8052 845b5ae03841
--- a/QTfrontend/main.cpp	Sat Nov 17 22:07:17 2012 +0400
+++ b/QTfrontend/main.cpp	Sat Nov 17 22:45:30 2012 +0400
@@ -227,8 +227,6 @@
     engine.mount(cfgdir->absolutePath(), "/config");
     engine.setWriteDir(cfgdir->absolutePath());
 
-    DataManager & dataMgr = DataManager::instance();
-
     QTranslator Translator;
     {
         QSettings settings("physfs://config/hedgewars.ini", QSettings::IniFormat);
@@ -280,7 +278,7 @@
     }
 
     // load external stylesheet if there is any
-    QFile extFile(dataMgr.findFileForRead("css/" + fname));
+    QFile extFile("physfs://css/" + fname);
 
     QFile resFile(":/res/css/" + fname);