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

Method processAsLitemod

launcher/minecraft/mod/LocalModParseTask.cpp:439–459  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

437}
438
439void LocalModParseTask::processAsLitemod()
440{
441 QuaZip zip(m_modFile.filePath());
442 if (!zip.open(QuaZip::mdUnzip))
443 return;
444
445 QuaZipFile file(&zip);
446
447 if (zip.setCurrentFile("litemod.json"))
448 {
449 if (!file.open(QIODevice::ReadOnly))
450 {
451 zip.close();
452 return;
453 }
454
455 m_result->details = ReadLiteModInfo(file.readAll());
456 file.close();
457 }
458 zip.close();
459}
460
461void LocalModParseTask::run()
462{

Callers

nothing calls this directly

Calls 3

ReadLiteModInfoFunction · 0.85
filePathMethod · 0.80
openMethod · 0.80

Tested by

no test coverage detected