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

Method processAsFolder

launcher/minecraft/mod/LocalModParseTask.cpp:424–437  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

422}
423
424void 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
439void LocalModParseTask::processAsLitemod()
440{

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