| 481 | } |
| 482 | |
| 483 | void LocalModParseTask::processAsFolder() |
| 484 | { |
| 485 | QFileInfo mcmod_info(FS::PathCombine(m_modFile.filePath(), "mcmod.info")); |
| 486 | if (mcmod_info.isFile()) |
| 487 | { |
| 488 | QFile mcmod(mcmod_info.filePath()); |
| 489 | if (!mcmod.open(QIODevice::ReadOnly)) |
| 490 | return; |
| 491 | auto data = mcmod.readAll(); |
| 492 | if (data.isEmpty() || data.isNull()) |
| 493 | return; |
| 494 | m_result->details = ReadMCModInfo(data); |
| 495 | } |
| 496 | } |
| 497 | |
| 498 | void LocalModParseTask::processAsLitemod() |
| 499 | { |
nothing calls this directly
no test coverage detected