add log message to indicate file open failed

This commit is contained in:
goeiecool9999 2024-02-12 12:30:04 +01:00
parent f1d4c399a2
commit f928eee5f3

View File

@ -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<BootSoundReader>(bootSndFileHandle, audioBlockSize);