From 0da1e413aa6efefc0704b5b6441994f8d2c6ba03 Mon Sep 17 00:00:00 2001 From: veclavtalica Date: Wed, 15 Jan 2025 05:00:45 +0300 Subject: [PATCH] only init the necessary with SDL, speeding up the startup --- src/twn_loop.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/twn_loop.c b/src/twn_loop.c index ecd9a97..e22e112 100644 --- a/src/twn_loop.c +++ b/src/twn_loop.c @@ -341,7 +341,7 @@ ERR_PACK_MANIFEST_PATH_ALLOC_FAIL: static bool initialize(void) { - if (SDL_Init(SDL_INIT_EVERYTHING & ~SDL_INIT_HAPTIC) == -1) { + if (SDL_Init(SDL_INIT_VIDEO | SDL_INIT_AUDIO | SDL_INIT_EVENTS) == -1) { CRY_SDL("SDL initialization failed."); return false; }