| 422 | } |
| 423 | |
| 424 | void LocalModParseTask::processAsFolder() |
| 425 | { |
| 426 | QFileInfo mcmod_info(FS::PathCombine(m_modFile.filePath(), "mcmod.info")); |
| 427 | if (mcmod_info.isFile()) |
| 428 | { |
| 429 | QFile mcmod(mcmod_info.filePath()); |
| 430 | if (!mcmod.open(QIODevice::ReadOnly)) |
| 431 | return; |
| 432 | auto data = mcmod.readAll(); |
| 433 | if (data.isEmpty() || data.isNull()) |
| 434 | return; |
| 435 | m_result->details = ReadMCModInfo(data); |
| 436 | } |
| 437 | } |
| 438 | |
| 439 | void LocalModParseTask::processAsLitemod() |
| 440 | { |
nothing calls this directly
no test coverage detected