GH-1016 print list of mods, coremods and jarmods
Includes a change to jar mods, where they gain an 'originalName' attribute used only for display
This commit is contained in:
@@ -155,7 +155,13 @@ VersionFilePtr VersionFile::fromJson(const QJsonDocument &doc, const QString &fi
|
||||
{
|
||||
QJsonObject libObj = ensureObject(libVal);
|
||||
// parse the jarmod
|
||||
auto lib = Jarmod::fromJson(libObj, filename);
|
||||
auto lib = Jarmod::fromJson(libObj, filename, out->name);
|
||||
if(lib->originalName.isEmpty())
|
||||
{
|
||||
auto fixed = out->name;
|
||||
fixed.remove(" (jar mod)");
|
||||
lib->originalName = out->name;
|
||||
}
|
||||
// and add to jar mods
|
||||
out->jarMods.append(lib);
|
||||
}
|
||||
|
Reference in New Issue
Block a user