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:
parent
9920062003
commit
6fd18a5cce
5 changed files with 32 additions and 6 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue