feat: cache metadata in ModDetails
Allows for more easy access to the metadata by outside entities
This commit is contained in:
@ -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;
|
||||
};
|
||||
|
Reference in New Issue
Block a user