mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-12-07 21:59:54 +00:00
Meta+WebContent+LibWeb: Add, link and initialize SDL3
This commit is contained in:
parent
36d5e814ef
commit
50dcd8fc85
Notes:
github-actions[bot]
2025-09-01 19:12:03 +00:00
Author: https://github.com/Lubrsi
Commit: 50dcd8fc85
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5902
Reviewed-by: https://github.com/gmta
Reviewed-by: https://github.com/trflynn89
6 changed files with 49 additions and 1 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue