Meta+WebContent+LibWeb: Add, link and initialize SDL3

This commit is contained in:
Luke Wilde 2025-08-15 14:55:09 +01:00 committed by Andreas Kling
parent 36d5e814ef
commit 50dcd8fc85
Notes: github-actions[bot] 2025-09-01 19:12:03 +00:00
6 changed files with 49 additions and 1 deletions

View file

@ -48,6 +48,8 @@
# include <LibCore/Platform/ProcessStatisticsMach.h>
#endif
#include <SDL3/SDL_init.h>
static ErrorOr<void> load_content_filters(StringView config_path);
static ErrorOr<void> initialize_resource_loader(GC::Heap&, int request_server_socket);
@ -60,6 +62,12 @@ ErrorOr<int> ladybird_main(Main::Arguments arguments)
{
AK::set_rich_debug_enabled(true);
// SDL is used for the Gamepad API.
if (!SDL_Init(SDL_INIT_GAMEPAD)) {
dbgln("Failed to initialize SDL3: {}", SDL_GetError());
return -1;
}
#if defined(HAVE_QT_MULTIMEDIA)
QCoreApplication app(arguments.argc, arguments.argv);