mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 19:11:50 +00:00
lua environmnents-related update
This commit is contained in:
parent
9ad371862c
commit
fce77bc896
10 changed files with 67 additions and 87 deletions
|
|
@ -66,6 +66,8 @@ void AssetsLoader::addDefaults(AssetsLoader& loader, bool world) {
|
|||
loader.add(ASSET_TEXTURE, TEXTURES_FOLDER"/misc/sun.png", "misc/sun");
|
||||
|
||||
for (fs::path& file : loader.getPaths()->listdir(LAYOUTS_FOLDER)) {
|
||||
if (file.extension().u8string() != ".xml")
|
||||
continue;
|
||||
std::string packName = file.parent_path().parent_path().filename();
|
||||
if (packName == "res") {
|
||||
packName = "core";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue