| 437 | } |
| 438 | |
| 439 | void LocalModParseTask::processAsLitemod() |
| 440 | { |
| 441 | QuaZip zip(m_modFile.filePath()); |
| 442 | if (!zip.open(QuaZip::mdUnzip)) |
| 443 | return; |
| 444 | |
| 445 | QuaZipFile file(&zip); |
| 446 | |
| 447 | if (zip.setCurrentFile("litemod.json")) |
| 448 | { |
| 449 | if (!file.open(QIODevice::ReadOnly)) |
| 450 | { |
| 451 | zip.close(); |
| 452 | return; |
| 453 | } |
| 454 | |
| 455 | m_result->details = ReadLiteModInfo(file.readAll()); |
| 456 | file.close(); |
| 457 | } |
| 458 | zip.close(); |
| 459 | } |
| 460 | |
| 461 | void LocalModParseTask::run() |
| 462 | { |
nothing calls this directly
no test coverage detected