MCPcopy Create free account
hub / github.com/MultiMC/Launcher / processAsFolder

Method processAsFolder

launcher/minecraft/mod/LocalModParseTask.cpp:483–496  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

481}
482
483void 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
498void LocalModParseTask::processAsLitemod()
499{

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