From cd6d4db7b8babec0e1a887252f83a2c68d26509d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Mon, 4 Nov 2024 12:05:42 +0100 Subject: [PATCH] Fix missing return value in another function --- ios/main.mm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ios/main.mm b/ios/main.mm index 6477c6b0c3..a2eb0f28ed 100644 --- a/ios/main.mm +++ b/ios/main.mm @@ -417,7 +417,7 @@ bool System_MakeRequest(SystemRequestType type, int requestId, const std::string dispatch_async(dispatch_get_main_queue(), ^{ [(AppDelegate *)[[UIApplication sharedApplication] delegate] restart:param1.c_str()]; }); - break; + return true; case SystemRequestType::EXIT_APP: // NOTE: on iOS, this is considered a crash and not a valid way to exit. @@ -508,8 +508,9 @@ bool System_MakeRequest(SystemRequestType type, int requestId, const std::string }); return true; default: - return false; + break; } + return false; } void System_Toast(std::string_view text) {}