QTfrontend/util/FileEngine.cpp
branchphysfslayer
changeset 8052 845b5ae03841
parent 7955 85b3970b402a
child 8085 6c059add1560
equal deleted inserted replaced
8049:133e22b5c410 8052:845b5ae03841
     1 /* borrowed from https://github.com/skhaz/qt-physfs-wrapper
     1 /* borrowed from https://github.com/skhaz/qt-physfs-wrapper
     2  * TODO: add copyright header, determine license
     2  * TODO: add copyright header, determine license
     3  */
     3  */
     4 
     4 
     5 
     5 
       
     6 #include "hwpacksmounter.h"
     6 #include "FileEngine.h"
     7 #include "FileEngine.h"
     7 
     8 
     8 
     9 
     9 const QString FileEngineHandler::scheme = "physfs:/";
    10 const QString FileEngineHandler::scheme = "physfs:/";
    10 
    11 
   263 void FileEngineHandler::setWriteDir(const QString &path)
   264 void FileEngineHandler::setWriteDir(const QString &path)
   264 {
   265 {
   265     PHYSFS_setWriteDir(path.toUtf8().constData());
   266     PHYSFS_setWriteDir(path.toUtf8().constData());
   266 }
   267 }
   267 
   268 
       
   269 void FileEngineHandler::mountPacks()
       
   270 {
       
   271     hedgewarsMountPackages();
       
   272 }
   268 
   273 
   269 
   274 
   270 FileEngineIterator::FileEngineIterator(QDir::Filters filters, const QStringList &nameFilters, const QStringList &entries)
   275 FileEngineIterator::FileEngineIterator(QDir::Filters filters, const QStringList &nameFilters, const QStringList &entries)
   271     : QAbstractFileEngineIterator(filters, nameFilters)
   276     : QAbstractFileEngineIterator(filters, nameFilters)
   272 {
   277 {