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

Function createErrorVersionFile

launcher/minecraft/ProfileUtils.cpp:105–112  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

103}
104
105static VersionFilePtr createErrorVersionFile(QString fileId, QString filepath, QString error)
106{
107 auto outError = std::make_shared<VersionFile>();
108 outError->uid = outError->name = fileId;
109 // outError->filename = filepath;
110 outError->addProblem(ProblemSeverity::Error, error);
111 return outError;
112}
113
114static VersionFilePtr guardedParseJson(const QJsonDocument & doc,const QString &fileId,const QString &filepath,const bool &requireOrder)
115{

Callers 2

guardedParseJsonFunction · 0.85
parseJsonFileFunction · 0.85

Calls 1

addProblemMethod · 0.80

Tested by

no test coverage detected