mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-12 22:41:49 +00:00
add 'source' property
This commit is contained in:
parent
354e67087c
commit
3fa5369c7c
2 changed files with 2 additions and 0 deletions
|
|
@ -88,6 +88,7 @@ ContentPack ContentPack::read(const fs::path& folder) {
|
||||||
root.at("creator").get(pack.creator);
|
root.at("creator").get(pack.creator);
|
||||||
}
|
}
|
||||||
root.at("description").get(pack.description);
|
root.at("description").get(pack.description);
|
||||||
|
root.at("source").get(pack.source);
|
||||||
pack.folder = folder;
|
pack.folder = folder;
|
||||||
|
|
||||||
if (auto found = root.at("dependencies")) {
|
if (auto found = root.at("dependencies")) {
|
||||||
|
|
|
||||||
|
|
@ -42,6 +42,7 @@ struct ContentPack {
|
||||||
std::string version = "0.0";
|
std::string version = "0.0";
|
||||||
std::string creator = "";
|
std::string creator = "";
|
||||||
std::string description = "no description";
|
std::string description = "no description";
|
||||||
|
std::string source = "";
|
||||||
fs::path folder;
|
fs::path folder;
|
||||||
std::vector<DependencyPack> dependencies;
|
std::vector<DependencyPack> dependencies;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue