| 384 | } |
| 385 | |
| 386 | void LocalModParseTask::processAsFolder() |
| 387 | { |
| 388 | QFileInfo mcmod_info(FS::PathCombine(m_modFile.filePath(), "mcmod.info")); |
| 389 | if (mcmod_info.isFile()) { |
| 390 | QFile mcmod(mcmod_info.filePath()); |
| 391 | if (!mcmod.open(QIODevice::ReadOnly)) |
| 392 | return; |
| 393 | auto data = mcmod.readAll(); |
| 394 | if (data.isEmpty() || data.isNull()) |
| 395 | return; |
| 396 | m_result->details = ReadMCModInfo(data); |
| 397 | } |
| 398 | } |
| 399 | |
| 400 | void LocalModParseTask::processAsLitemod() |
| 401 | { |
nothing calls this directly
no test coverage detected