feat: cache metadata in ModDetails

Allows for more easy access to the metadata by outside entities
This commit is contained in:
flow
2022-04-17 09:30:32 -03:00
committed by flow
parent fab4a7a602
commit 23febc6d94
3 changed files with 29 additions and 6 deletions

View File

@ -1,8 +1,12 @@
#pragma once
#include <memory>
#include <QString>
#include <QStringList>
#include "minecraft/mod/MetadataHandler.h"
struct ModDetails
{
/* Mod ID as defined in the ModLoader-specific metadata */
@ -25,4 +29,7 @@ struct ModDetails
/* List of the author's names */
QStringList authors;
/* Metadata information, if any */
std::shared_ptr<Metadata::ModStruct> metadata;
};