mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 19:11:50 +00:00
minor refactor
This commit is contained in:
parent
2a8b750ad7
commit
8ff629e1cd
15 changed files with 120 additions and 107 deletions
|
|
@ -167,12 +167,12 @@ assetload::postfunc assetload::sound(
|
|||
// looking for 'sound_name' as base sound
|
||||
auto soundFile = paths->find(file+extension);
|
||||
if (fs::exists(soundFile)) {
|
||||
baseSound.reset(audio::load_sound(soundFile, keepPCM));
|
||||
baseSound = audio::load_sound(soundFile, keepPCM);
|
||||
}
|
||||
// looking for 'sound_name_0' as base sound
|
||||
auto variantFile = paths->find(file+"_0"+extension);
|
||||
if (fs::exists(variantFile)) {
|
||||
baseSound.reset(audio::load_sound(variantFile, keepPCM));
|
||||
baseSound = audio::load_sound(variantFile, keepPCM);
|
||||
}
|
||||
|
||||
// loading sound variants
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue