MCPcopy Create free account
hub / github.com/ElyPrismLauncher/Launcher / createErrorVersionFile

Function createErrorVersionFile

launcher/minecraft/ProfileUtils.cpp:93–100  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 2

guardedParseJsonFunction · 0.85
parseJsonFileFunction · 0.85

Calls 1

addProblemMethod · 0.80

Tested by

no test coverage detected