MCPcopy Create free account
hub / github.com/PolyMC/PolyMC / processAsFolder

Method processAsFolder

launcher/minecraft/mod/tasks/LocalModParseTask.cpp:386–398  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

384}
385
386void 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
400void LocalModParseTask::processAsLitemod()
401{

Callers

nothing calls this directly

Calls 5

PathCombineFunction · 0.85
ReadMCModInfoFunction · 0.85
filePathMethod · 0.80
openMethod · 0.80
isEmptyMethod · 0.80

Tested by

no test coverage detected