mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-06-14 14:55:46 -04:00
Host: Add ReportFatalError()
This commit is contained in:
@ -17,6 +17,7 @@
|
||||
|
||||
#include "common/assert.h"
|
||||
#include "common/crash_handler.h"
|
||||
#include "common/error.h"
|
||||
#include "common/file_system.h"
|
||||
#include "common/log.h"
|
||||
#include "common/memory_settings_interface.h"
|
||||
@ -114,6 +115,12 @@ bool RegTestHost::InitializeConfig()
|
||||
return true;
|
||||
}
|
||||
|
||||
void Host::ReportFatalError(const std::string_view& title, const std::string_view& message)
|
||||
{
|
||||
Log_ErrorPrintf("ReportFatalError: %.*s", static_cast<int>(message.size()), message.data());
|
||||
abort();
|
||||
}
|
||||
|
||||
void Host::ReportErrorAsync(const std::string_view& title, const std::string_view& message)
|
||||
{
|
||||
if (!title.empty() && !message.empty())
|
||||
|
Reference in New Issue
Block a user