equal
deleted
inserted
replaced
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 { |