NoGUI: Add ConfirmMessage() to platform

This commit is contained in:
Connor McLaughlin
2022-08-27 19:00:31 +10:00
parent d2d2e3ae6e
commit c90e2f19fc
10 changed files with 35 additions and 11 deletions

View File

@@ -293,7 +293,6 @@ void Host::ReportErrorAsync(const std::string_view& title, const std::string_vie
bool Host::ConfirmMessage(const std::string_view& title, const std::string_view& message)
{
// TODO: Post to window
if (!title.empty() && !message.empty())
{
Log_ErrorPrintf("ConfirmMessage: %.*s: %.*s", static_cast<int>(title.size()), title.data(),
@@ -304,7 +303,7 @@ bool Host::ConfirmMessage(const std::string_view& title, const std::string_view&
Log_ErrorPrintf("ConfirmMessage: %.*s", static_cast<int>(message.size()), message.data());
}
return true;
return g_nogui_window->ConfirmMessage(title, message);
}
void Host::ReportDebuggerMessage(const std::string_view& message)