| 169 | } |
| 170 | |
| 171 | QByteArray getLevelDatDataFromFS(const QFileInfo &file) |
| 172 | { |
| 173 | auto fullFilePath = getLevelDatFromFS(file); |
| 174 | if(fullFilePath.isNull()) |
| 175 | { |
| 176 | return QByteArray(); |
| 177 | } |
| 178 | QFile f(fullFilePath); |
| 179 | if(!f.open(QIODevice::ReadOnly)) |
| 180 | { |
| 181 | return QByteArray(); |
| 182 | } |
| 183 | return f.readAll(); |
| 184 | } |
| 185 | |
| 186 | bool putLevelDatDataToFS(const QFileInfo &file, QByteArray & data) |
| 187 | { |
no test coverage detected