QTfrontend/model/MapModel.cpp
branchphysfslayer
changeset 8049 133e22b5c410
parent 6983 ede55af89e78
child 8377 869f80966a77
--- a/QTfrontend/model/MapModel.cpp	Sat Nov 17 22:07:17 2012 +0400
+++ b/QTfrontend/model/MapModel.cpp	Sat Nov 17 22:45:30 2012 +0400
@@ -62,10 +62,8 @@
     // add mission/static maps to lists
     foreach (QString map, maps)
     {
-        mapCfgFile.setFileName(
-            datamgr.findFileForRead(QString("Maps/%1/map.cfg").arg(map)));
-        mapLuaFile.setFileName(
-            datamgr.findFileForRead(QString("Maps/%1/map.lua").arg(map)));
+        mapCfgFile.setFileName(QString("physfs://Maps/%1/map.cfg").arg(map));
+        mapLuaFile.setFileName(QString("physfs://Maps/%1/map.lua").arg(map));
 
 
         if (mapCfgFile.open(QFile::ReadOnly))