From c796527bb1a4f1213b1b2083e466f861d7580ea0 Mon Sep 17 00:00:00 2001 From: goeiecool9999 <7033575+goeiecool9999@users.noreply.github.com> Date: Tue, 14 May 2024 14:42:15 +0200 Subject: [PATCH] don't print error when file doesn't exist --- src/Cafe/HW/Latte/Core/LatteShaderCache.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Cafe/HW/Latte/Core/LatteShaderCache.cpp b/src/Cafe/HW/Latte/Core/LatteShaderCache.cpp index 1383d185..e5f1cc71 100644 --- a/src/Cafe/HW/Latte/Core/LatteShaderCache.cpp +++ b/src/Cafe/HW/Latte/Core/LatteShaderCache.cpp @@ -850,6 +850,10 @@ void LatteShaderCache_StreamBootSound() std::string sndPath = fmt::format("{}/meta/{}", CafeSystem::GetMlcStoragePath(CafeSystem::GetForegroundTitleId()), "bootSound.btsnd"); sint32 fscStatus = FSC_STATUS_UNDEFINED; + + if(!fsc_doesFileExist(sndPath.c_str())) + return; + bootSndFileHandle = fsc_open(sndPath.c_str(), FSC_ACCESS_FLAG::OPEN_FILE | FSC_ACCESS_FLAG::READ_PERMISSION, &fscStatus); if(!bootSndFileHandle) {