Skip to content

Commit

Permalink
iOS buildfix, cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
hrydgard committed Jun 20, 2023
1 parent 575c428 commit 8fa7cb2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion headless/Headless.cpp
Expand Up @@ -118,7 +118,6 @@ bool System_GetPropertyBool(SystemProperty prop) {
}
void System_Notify(SystemNotification notification) {}
void System_PostUIMessage(const std::string &message, const std::string &param) {}
void System_NotifyUserMessage(const std::string &message, float duration, u32 color, const char *id) {}
bool System_MakeRequest(SystemRequestType type, int requestId, const std::string &param1, const std::string &param2, int param3) {
switch (type) {
case SystemRequestType::SEND_DEBUG_OUTPUT:
Expand Down
2 changes: 1 addition & 1 deletion ios/ViewController.mm
Expand Up @@ -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();
Expand Down

0 comments on commit 8fa7cb2

Please sign in to comment.