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

Function createErrorVersionFile

launcher/minecraft/ProfileUtils.cpp:94–101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

92}
93
94static VersionFilePtr createErrorVersionFile(QString fileId, QString filepath, QString error)
95{
96 auto outError = std::make_shared<VersionFile>();
97 outError->uid = outError->name = fileId;
98 // outError->filename = filepath;
99 outError->addProblem(ProblemSeverity::Error, error);
100 return outError;
101}
102
103static VersionFilePtr guardedParseJson(const QJsonDocument& doc, const QString& fileId, const QString& filepath, const bool& requireOrder)
104{

Callers 2

guardedParseJsonFunction · 0.85
parseJsonFileFunction · 0.85

Calls 1

addProblemMethod · 0.80

Tested by

no test coverage detected