mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-02-22 20:57:12 +01:00
add some more error handling, whitespace in cmake file
This commit is contained in:
parent
04ed1c4ed9
commit
363fe5901a
@ -285,12 +285,15 @@ void LatteThread_InitBootSound()
|
|||||||
catch (const std::runtime_error& ex)
|
catch (const std::runtime_error& ex)
|
||||||
{
|
{
|
||||||
cemuLog_log(LogType::Force, "Failed to initialise audio device for bootup sound");
|
cemuLog_log(LogType::Force, "Failed to initialise audio device for bootup sound");
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
g_BootSndAudioDev->Play();
|
g_BootSndAudioDev->Play();
|
||||||
|
|
||||||
std::string sndPath = fmt::format("{}/meta/{}", CafeSystem::GetMlcStoragePath(CafeSystem::GetForegroundTitleId()), "bootSound.btsnd");
|
std::string sndPath = fmt::format("{}/meta/{}", CafeSystem::GetMlcStoragePath(CafeSystem::GetForegroundTitleId()), "bootSound.btsnd");
|
||||||
sint32 fscStatus = FSC_STATUS_UNDEFINED;
|
sint32 fscStatus = FSC_STATUS_UNDEFINED;
|
||||||
g_bootSndFileHandle = fsc_open(sndPath.c_str(), FSC_ACCESS_FLAG::OPEN_FILE | FSC_ACCESS_FLAG::READ_PERMISSION, &fscStatus);
|
g_bootSndFileHandle = fsc_open(sndPath.c_str(), FSC_ACCESS_FLAG::OPEN_FILE | FSC_ACCESS_FLAG::READ_PERMISSION, &fscStatus);
|
||||||
|
if(!g_bootSndFileHandle)
|
||||||
|
return;
|
||||||
|
|
||||||
g_BootSndFileReader = std::make_unique<BootSoundReader>(g_bootSndFileHandle, audioBlockSize);
|
g_BootSndFileReader = std::make_unique<BootSoundReader>(g_bootSndFileHandle, audioBlockSize);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user