small ui changes

This commit is contained in:
MihailRis
2024-04-30 19:43:34 +03:00
parent 69265baa48
commit 690e3f54c9
5 changed files with 12 additions and 33 deletions
+3
View File
@@ -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);