From c3590a911c39362589985860a6af8550d1da4920 Mon Sep 17 00:00:00 2001 From: Alex Date: Fri, 2 Feb 2024 11:28:21 -0500 Subject: [PATCH] dont build sabl if unable to find sound files --- src/ObjLoading/ObjContainer/SoundBank/SoundBankWriter.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/ObjLoading/ObjContainer/SoundBank/SoundBankWriter.cpp b/src/ObjLoading/ObjContainer/SoundBank/SoundBankWriter.cpp index e9a728a5..449fe0e9 100644 --- a/src/ObjLoading/ObjContainer/SoundBank/SoundBankWriter.cpp +++ b/src/ObjLoading/ObjContainer/SoundBank/SoundBankWriter.cpp @@ -222,7 +222,12 @@ public: bool Write() override { - WriteEntries(); + if (!WriteEntries()) + { + std::cerr << "An error occurred writing the sound bank entires. Please check output." << std::endl; + return false; + } + WriteEntryList(); WriteChecksumList(); WriteBranding();