From 8fa7cb2122bd320e24cc777f45836d9ef7e75ad7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Tue, 20 Jun 2023 16:10:13 +0200 Subject: [PATCH] iOS buildfix, cleanup --- headless/Headless.cpp | 1 - ios/ViewController.mm | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/headless/Headless.cpp b/headless/Headless.cpp index ee19008202d2..a59ebafc45b0 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 5f125990af75..c09b1dbf7aa1 100644 --- a/ios/ViewController.mm +++ b/ios/ViewController.mm @@ -205,7 +205,7 @@ - (void)viewDidLoad { 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();