From f928eee5f3c3396d64a62384f09761bd70e37cdf Mon Sep 17 00:00:00 2001 From: goeiecool9999 <7033575+goeiecool9999@users.noreply.github.com> Date: Mon, 12 Feb 2024 12:30:04 +0100 Subject: [PATCH] add log message to indicate file open failed --- src/Cafe/HW/Latte/Core/LatteShaderCache.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Cafe/HW/Latte/Core/LatteShaderCache.cpp b/src/Cafe/HW/Latte/Core/LatteShaderCache.cpp index aac53d0f..1383d185 100644 --- a/src/Cafe/HW/Latte/Core/LatteShaderCache.cpp +++ b/src/Cafe/HW/Latte/Core/LatteShaderCache.cpp @@ -852,7 +852,10 @@ void LatteShaderCache_StreamBootSound() sint32 fscStatus = FSC_STATUS_UNDEFINED; bootSndFileHandle = fsc_open(sndPath.c_str(), FSC_ACCESS_FLAG::OPEN_FILE | FSC_ACCESS_FLAG::READ_PERMISSION, &fscStatus); if(!bootSndFileHandle) + { + cemuLog_log(LogType::Force, "failed to open bootSound.btsnd"); return; + } constexpr sint32 audioBlockSize = samplesPerBlock * (bitsPerSample/8) * nChannels; bootSndFileReader = std::make_unique(bootSndFileHandle, audioBlockSize);