mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-07 12:01:50 +00:00
Refactor
This commit is contained in:
parent
82c772bfdb
commit
c6d2266026
6 changed files with 33 additions and 57 deletions
|
|
@ -105,11 +105,11 @@ void langs::load(const path& resdir,
|
|||
reader.read(lang, "");
|
||||
}
|
||||
for (auto pack : packs) {
|
||||
path file = pack.getFolder()/filename;
|
||||
path file = pack.folder/filename;
|
||||
if (fs::is_regular_file(file)) {
|
||||
string text = files::read_string(file);
|
||||
Reader reader(file.string(), text);
|
||||
reader.read(lang, pack.getId()+":");
|
||||
reader.read(lang, pack.id+":");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue