mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-12 22:41:49 +00:00
make generation.get_generators nothrow
This commit is contained in:
parent
955e5257d5
commit
ab2b24d982
1 changed files with 9 additions and 5 deletions
|
|
@ -78,11 +78,15 @@ static void detect_defs_pairs(
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (fs::is_regular_file(file) && files::is_data_file(file)) {
|
if (fs::is_regular_file(file) && files::is_data_file(file)) {
|
||||||
auto map = files::read_object(file);
|
try {
|
||||||
std::string id = prefix.empty() ? name : prefix + ":" + name;
|
auto map = files::read_object(file);
|
||||||
std::string caption = util::id_to_caption(id);
|
auto id = prefix.empty() ? name : prefix + ":" + name;
|
||||||
map.at("caption").get(caption);
|
auto caption = util::id_to_caption(id);
|
||||||
detected.emplace_back(id, name);
|
map.at("caption").get(caption);
|
||||||
|
detected.emplace_back(id, name);
|
||||||
|
} catch (const std::runtime_error& err) {
|
||||||
|
logger.error() << err.what();
|
||||||
|
}
|
||||||
} else if (fs::is_directory(file) &&
|
} else if (fs::is_directory(file) &&
|
||||||
file.extension() != fs::u8path(".files")) {
|
file.extension() != fs::u8path(".files")) {
|
||||||
detect_defs_pairs(file, name, detected);
|
detect_defs_pairs(file, name, detected);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue