CommonHost: Fix volume hotkeys

This commit is contained in:
Connor McLaughlin
2022-08-04 21:20:26 +10:00
parent 49b4e1f0a6
commit 679f1a51db
3 changed files with 25 additions and 15 deletions

View File

@ -573,6 +573,11 @@ void Host::AddFormattedOSDMessage(float duration, const char* format, ...)
return AddKeyedOSDMessage(std::string(), std::move(ret), duration);
}
void Host::AddIconOSDMessage(std::string key, const char* icon, std::string message, float duration /* = 2.0f */)
{
return AddKeyedOSDMessage(std::move(key), fmt::format("{} {}", icon, message), duration);
}
void Host::AddKeyedFormattedOSDMessage(std::string key, float duration, const char* format, ...)
{
std::va_list ap;