From 4c17f2273568a2220b3aae60a6dfc476fc15b814 Mon Sep 17 00:00:00 2001 From: Kenneth Myhra Date: Fri, 5 May 2023 22:50:18 +0200 Subject: [PATCH] Ports: Unbreak SDL2 by using GUI::Application::create() Commit 1a97382 introduced the fallible GUI::Application::create() and removed GUI::Application::construct() breaking the SDL2 port, let's update it to use the fallible version. --- Ports/SDL2/patches/0001-Add-SerenityOS-platform-support.patch | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Ports/SDL2/patches/0001-Add-SerenityOS-platform-support.patch b/Ports/SDL2/patches/0001-Add-SerenityOS-platform-support.patch index 31ed89bbcc..fbf7fd979f 100644 --- a/Ports/SDL2/patches/0001-Add-SerenityOS-platform-support.patch +++ b/Ports/SDL2/patches/0001-Add-SerenityOS-platform-support.patch @@ -921,6 +921,7 @@ index 0000000000000000000000000000000000000000..f26040845dd05f425ba464af385e133c +# include +# include +# include ++# include +# include + +static SDL_Scancode scancode_map[] = { @@ -1125,7 +1126,7 @@ index 0000000000000000000000000000000000000000..f26040845dd05f425ba464af385e133c + dbgln("{}: Initialising SDL application", __FUNCTION__); + + if (!g_app) { -+ g_app = GUI::Application::construct(0, nullptr); ++ g_app = MUST(GUI::Application::create(Main::Arguments {})); + g_app->set_quit_when_last_window_deleted(false); + } +