| 159 | } |
| 160 | |
| 161 | QString getLevelDatFromFS(const QFileInfo &file) |
| 162 | { |
| 163 | QDir worldDir(file.filePath()); |
| 164 | if(!file.isDir() || !worldDir.exists("level.dat")) |
| 165 | { |
| 166 | return QString(); |
| 167 | } |
| 168 | return worldDir.absoluteFilePath("level.dat"); |
| 169 | } |
| 170 | |
| 171 | QByteArray getLevelDatDataFromFS(const QFileInfo &file) |
| 172 | { |
no test coverage detected