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