mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 03:21:49 +00:00
update lua chunks sources to the engine format
This commit is contained in:
parent
801650824e
commit
e3cb736519
9 changed files with 95 additions and 26 deletions
|
|
@ -172,7 +172,9 @@ assetload::postfunc assetload::layout(
|
|||
return [=](auto assets) {
|
||||
try {
|
||||
auto cfg = std::dynamic_pointer_cast<LayoutCfg>(config);
|
||||
assets->store(UiDocument::read(cfg->env, name, file), name);
|
||||
assets->store(
|
||||
UiDocument::read(cfg->env, name, file, "abs:" + file), name
|
||||
);
|
||||
} catch (const parsing_error& err) {
|
||||
throw std::runtime_error(
|
||||
"failed to parse layout XML '" + file + "':\n" + err.errorLog()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue