mirror of
https://github.com/stenzek/duckstation.git
synced 2025-06-17 00:40:12 +00:00
33 lines
828 B
C++
33 lines
828 B
C++
#include "host.h"
|
|
#include "common/string_util.h"
|
|
#include <cstdarg>
|
|
|
|
void Host::ReportFormattedErrorAsync(const std::string_view& title, const char* format, ...)
|
|
{
|
|
std::va_list ap;
|
|
va_start(ap, format);
|
|
std::string message(StringUtil::StdStringFromFormatV(format, ap));
|
|
va_end(ap);
|
|
ReportErrorAsync(title, message);
|
|
}
|
|
|
|
bool Host::ConfirmFormattedMessage(const std::string_view& title, const char* format, ...)
|
|
{
|
|
std::va_list ap;
|
|
va_start(ap, format);
|
|
std::string message = StringUtil::StdStringFromFormatV(format, ap);
|
|
va_end(ap);
|
|
|
|
return ConfirmMessage(title, message);
|
|
}
|
|
|
|
void Host::ReportFormattedDebuggerMessage(const char* format, ...)
|
|
{
|
|
std::va_list ap;
|
|
va_start(ap, format);
|
|
std::string message = StringUtil::StdStringFromFormatV(format, ap);
|
|
va_end(ap);
|
|
|
|
ReportDebuggerMessage(message);
|
|
}
|