mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-07-08 07:51:19 +12:00
add log message to indicate file open failed
This commit is contained in:
parent
f1d4c399a2
commit
f928eee5f3
1 changed files with 3 additions and 0 deletions
|
@ -852,7 +852,10 @@ void LatteShaderCache_StreamBootSound()
|
||||||
sint32 fscStatus = FSC_STATUS_UNDEFINED;
|
sint32 fscStatus = FSC_STATUS_UNDEFINED;
|
||||||
bootSndFileHandle = fsc_open(sndPath.c_str(), FSC_ACCESS_FLAG::OPEN_FILE | FSC_ACCESS_FLAG::READ_PERMISSION, &fscStatus);
|
bootSndFileHandle = fsc_open(sndPath.c_str(), FSC_ACCESS_FLAG::OPEN_FILE | FSC_ACCESS_FLAG::READ_PERMISSION, &fscStatus);
|
||||||
if(!bootSndFileHandle)
|
if(!bootSndFileHandle)
|
||||||
|
{
|
||||||
|
cemuLog_log(LogType::Force, "failed to open bootSound.btsnd");
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
constexpr sint32 audioBlockSize = samplesPerBlock * (bitsPerSample/8) * nChannels;
|
constexpr sint32 audioBlockSize = samplesPerBlock * (bitsPerSample/8) * nChannels;
|
||||||
bootSndFileReader = std::make_unique<BootSoundReader>(bootSndFileHandle, audioBlockSize);
|
bootSndFileReader = std::make_unique<BootSoundReader>(bootSndFileHandle, audioBlockSize);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue