MCPcopy Create free account
hub / github.com/FreesmTeam/FreesmLauncher / validate

Function validate

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

Checks whether a file is valid as a mod or not. */

Source from the content-addressed store, hash-verified

649
650/** Checks whether a file is valid as a mod or not. */
651bool validate(QFileInfo file)
652{
653 Mod mod{ file };
654 return ModUtils::process(mod, ProcessingLevel::BasicInfoOnly) && mod.valid();
655}
656
657bool processIconPNG(const Mod& mod, QByteArray&& raw_data, QPixmap* pixmap)
658{

Callers 4

identifyFunction · 0.70
InstallDialogMethod · 0.50
InstallLoaderDialogMethod · 0.50
ExportPackDialogMethod · 0.50

Calls 2

processFunction · 0.70
validMethod · 0.45

Tested by

no test coverage detected