From 3fa5369c7c0af82c09fcacd345279d6ad5e7258b Mon Sep 17 00:00:00 2001 From: MihailRis Date: Sun, 10 Nov 2024 20:09:07 +0300 Subject: [PATCH] add 'source' property --- src/content/ContentPack.cpp | 1 + src/content/ContentPack.hpp | 1 + 2 files changed, 2 insertions(+) diff --git a/src/content/ContentPack.cpp b/src/content/ContentPack.cpp index 1dae138c..166400c6 100644 --- a/src/content/ContentPack.cpp +++ b/src/content/ContentPack.cpp @@ -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")) { diff --git a/src/content/ContentPack.hpp b/src/content/ContentPack.hpp index 5aa1a22b..292400a5 100644 --- a/src/content/ContentPack.hpp +++ b/src/content/ContentPack.hpp @@ -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 dependencies;