mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-29 17:23:40 +01:00
Log if we fail to load default samples
This commit is contained in:
1 parent
df104c66a8
commit
18fbe7afe8
1 file changed
+5
-2
@@ -481,8 +481,11 @@ void SoundEffectMixer::LoadDefaultSample(UI::UISound sound) {
|
||||
default:
|
||||
return;
|
||||
}
|
||||
|
||||
samples_[(size_t)sound] = std::unique_ptr<Sample>(Sample::Load(filename));
|
||||
Sample *sample = Sample::Load(filename);
|
||||
if (!sample) {
|
||||
ERROR_LOG(SYSTEM, "Failed to load the default sample for UI sound %d", (int)sound);
|
||||
}
|
||||
samples_[(size_t)sound] = std::unique_ptr<Sample>(sample);
|
||||
}
|
||||
|
||||
void SoundEffectMixer::LoadSamples() {
|
||||
|
||||
Reference in new issue
Block a user