add 'source' property

This commit is contained in:
MihailRis 2024-11-10 20:09:07 +03:00
parent 354e67087c
commit 3fa5369c7c
2 changed files with 2 additions and 0 deletions

View File

@ -88,6 +88,7 @@ ContentPack ContentPack::read(const fs::path& folder) {
root.at("creator").get(pack.creator);
}
root.at("description").get(pack.description);
root.at("source").get(pack.source);
pack.folder = folder;
if (auto found = root.at("dependencies")) {

View File

@ -42,6 +42,7 @@ struct ContentPack {
std::string version = "0.0";
std::string creator = "";
std::string description = "no description";
std::string source = "";
fs::path folder;
std::vector<DependencyPack> dependencies;