mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-26 18:21:04 +00:00
start working on flags
This commit is contained in:
parent
33908990cc
commit
75a7c3b4de
7 changed files with 44 additions and 10 deletions
|
@ -146,6 +146,15 @@ bool parseModContents(ModSpec &spec)
|
|||
}
|
||||
}
|
||||
}
|
||||
} else {
|
||||
if (info.exists("mapgen_flags")) {
|
||||
std::string dep = info.get("mapgen_flags");
|
||||
dep.erase(std::remove_if(dep.begin(), dep.end(),
|
||||
static_cast<int (*)(int)>(&std::isspace)), dep.end());
|
||||
for (const auto &flag : str_split(dep, ',')) {
|
||||
spec.mapgen_flags.insert(flag);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (info.exists("description"))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue