equal
deleted
inserted
replaced
165 { |
165 { |
166 if(file.startsWith(FileEngineHandler::scheme)) |
166 if(file.startsWith(FileEngineHandler::scheme)) |
167 _filename = file.mid(FileEngineHandler::scheme.size()); |
167 _filename = file.mid(FileEngineHandler::scheme.size()); |
168 else |
168 else |
169 _filename = file; |
169 _filename = file; |
|
170 |
170 PHYSFS_Stat stat; |
171 PHYSFS_Stat stat; |
171 if (PHYSFS_stat(_filename.toUtf8().constData(), &stat) != 0) { |
172 if (PHYSFS_stat(_filename.toUtf8().constData(), &stat) != 0) { |
172 _size = stat.filesize; |
173 _size = stat.filesize; |
173 _datetime = QDateTime::fromTime_t(stat.modtime); |
174 _datetime = QDateTime::fromTime_t(stat.modtime); |
|
175 _flags |= QAbstractFileEngine::ReadUserPerm; |
174 _flags |= QAbstractFileEngine::ExistsFlag; |
176 _flags |= QAbstractFileEngine::ExistsFlag; |
175 |
177 |
176 switch (stat.filetype) |
178 switch (stat.filetype) |
177 { |
179 { |
178 case PHYSFS_FILETYPE_REGULAR: |
180 case PHYSFS_FILETYPE_REGULAR: |