mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-07 20:11:50 +00:00
small ui changes
This commit is contained in:
parent
69265baa48
commit
690e3f54c9
5 changed files with 12 additions and 33 deletions
|
|
@ -182,6 +182,9 @@ assetload::postfunc assetload::sound(
|
|||
baseSound->variants.emplace_back(audio::load_sound(variantFile, keepPCM));
|
||||
}
|
||||
|
||||
if (baseSound == nullptr) {
|
||||
throw std::runtime_error("could not to find sound: " + file);
|
||||
}
|
||||
auto sound = baseSound.release();
|
||||
return [=](auto assets) {
|
||||
assets->store(sound, name);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue