mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 11:31:49 +00:00
add 'system.max-bg-asset-loaders' setting
This commit is contained in:
parent
1cf4fb8703
commit
63024133be
8 changed files with 26 additions and 9 deletions
|
|
@ -90,7 +90,7 @@ static int l_pack_get_info(
|
|||
auto& assetsLoader = engine->acquireBackgroundLoader();
|
||||
std::string icon = pack.id + ".icon";
|
||||
if (!AssetsLoader::loadExternalTexture(
|
||||
assetsLoader, icon, {pack.folder / "icon"}
|
||||
assetsLoader, icon, {pack.folder / "icon.png"}
|
||||
)) {
|
||||
icon = "gui/no_icon";
|
||||
}
|
||||
|
|
|
|||
|
|
@ -60,8 +60,8 @@ static int l_get_list(lua::State* L) {
|
|||
if (!engine->isHeadless() && !AssetsLoader::loadExternalTexture(
|
||||
engine->acquireBackgroundLoader(),
|
||||
icon,
|
||||
{worlds[i] / "icon",
|
||||
worlds[i] / "preview"}
|
||||
{worlds[i] / "icon.png",
|
||||
worlds[i] / "preview.png"}
|
||||
)) {
|
||||
icon = "gui/no_world_icon";
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue