mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
refactor frontend/locale
This commit is contained in:
parent
b202d1455b
commit
4c8742ce46
6 changed files with 95 additions and 77 deletions
|
|
@ -345,6 +345,15 @@ dv::value ResPaths::readCombinedObject(const std::string& filename, bool deep) c
|
|||
return object;
|
||||
}
|
||||
|
||||
std::vector<io::path> ResPaths::collectRoots() {
|
||||
std::vector<io::path> collected;
|
||||
collected.reserve(roots.size());
|
||||
for (const auto& root : roots) {
|
||||
collected.emplace_back(root.path);
|
||||
}
|
||||
return collected;
|
||||
}
|
||||
|
||||
const io::path& ResPaths::getMainRoot() const {
|
||||
return mainRoot;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue