diff --git a/headless/Headless.cpp b/headless/Headless.cpp index ee19008202..a59ebafc45 100644 --- a/headless/Headless.cpp +++ b/headless/Headless.cpp @@ -118,7 +118,6 @@ bool System_GetPropertyBool(SystemProperty prop) { } void System_Notify(SystemNotification notification) {} void System_PostUIMessage(const std::string &message, const std::string ¶m) {} -void System_NotifyUserMessage(const std::string &message, float duration, u32 color, const char *id) {} bool System_MakeRequest(SystemRequestType type, int requestId, const std::string ¶m1, const std::string ¶m2, int param3) { switch (type) { case SystemRequestType::SEND_DEBUG_OUTPUT: diff --git a/ios/ViewController.mm b/ios/ViewController.mm index 5f125990af..c09b1dbf7a 100644 --- a/ios/ViewController.mm +++ b/ios/ViewController.mm @@ -205,7 +205,7 @@ extern float g_safeInsetBottom; graphicsContext = new IOSGraphicsContext(); graphicsContext->GetDrawContext()->SetErrorCallback([](const char *shortDesc, const char *details, void *userdata) { - System_NotifyUserMessage(details, 5.0, 0xFFFFFFFF, "error_callback"); + g_OSD.Show(OSDType::MESSAGE_ERROR, details, 0.0f, "error_callback"); }, nullptr); graphicsContext->ThreadStart();