| 148 | } |
| 149 | |
| 150 | QByteArray getLevelDatDataFromFS(const QFileInfo &file) |
| 151 | { |
| 152 | auto fullFilePath = getLevelDatFromFS(file); |
| 153 | if(fullFilePath.isNull()) |
| 154 | { |
| 155 | return QByteArray(); |
| 156 | } |
| 157 | QFile f(fullFilePath); |
| 158 | if(!f.open(QIODevice::ReadOnly)) |
| 159 | { |
| 160 | return QByteArray(); |
| 161 | } |
| 162 | return f.readAll(); |
| 163 | } |
| 164 | |
| 165 | bool putLevelDatDataToFS(const QFileInfo &file, QByteArray & data) |
| 166 | { |
no test coverage detected