overlays: add optional sound to trophy popup

This commit is contained in:
Megamouse 2021-10-29 22:04:49 +02:00
parent f262e77fbd
commit 0e20acdf55
5 changed files with 22 additions and 0 deletions

View file

@ -110,6 +110,8 @@ void headless_application::InitializeCallbacks()
callbacks.get_localized_string = [](localized_string_id, const char*) -> std::string { return {}; };
callbacks.get_localized_u32string = [](localized_string_id, const char*) -> std::u32string { return {}; };
callbacks.play_sound = [](const std::string&){};
callbacks.resolve_path = [](std::string_view sv)
{
return QFileInfo(QString::fromUtf8(sv.data(), static_cast<int>(sv.size()))).canonicalFilePath().toStdString();