mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-08 12:31: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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -78,6 +78,8 @@ public:
|
|||
|
||||
dv::value readCombinedObject(const std::string& file, bool deep=false) const;
|
||||
|
||||
std::vector<io::path> collectRoots();
|
||||
|
||||
const io::path& getMainRoot() const;
|
||||
|
||||
private:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue