HostInterface: Add keyed OSD messages

This commit is contained in:
Connor McLaughlin
2021-11-16 23:52:31 +10:00
parent c346dfe8a4
commit 7522304360
6 changed files with 64 additions and 7 deletions

View File

@ -77,6 +77,13 @@ void RegTestHostInterface::AddOSDMessage(std::string message, float duration /*=
Log_InfoPrintf("OSD: %s", message.c_str());
}
void RegTestHostInterface::AddKeyedOSDMessage(std::string key, std::string message, float duration /* = 2.0f */)
{
Log_InfoPrintf("OSD: %s", message.c_str());
}
void RegTestHostInterface::RemoveKeyedOSDMessage(std::string key) {}
void RegTestHostInterface::DisplayLoadingScreen(const char* message, int progress_min /*= -1*/,
int progress_max /*= -1*/, int progress_value /*= -1*/)
{

View File

@ -17,6 +17,8 @@ public:
bool ConfirmMessage(const char* message) override;
void AddOSDMessage(std::string message, float duration = 2.0f) override;
void AddKeyedOSDMessage(std::string key, std::string message, float duration = 2.0f) override;
void RemoveKeyedOSDMessage(std::string key) override;
void DisplayLoadingScreen(const char* message, int progress_min = -1, int progress_max = -1,
int progress_value = -1) override;
void GetGameInfo(const char* path, CDImage* image, std::string* code, std::string* title) override;