From 47feeda0ced66bd2e74a7b399786ce827cfcea80 Mon Sep 17 00:00:00 2001 From: Anders Jenbo Date: Wed, 7 Apr 2021 13:29:25 +0200 Subject: [PATCH] :bug: Only initialize the subsystems that we use Fixes #1391 For now this stops the initalization of sensor subsystem, but in the future SDL may add more that we do not care about. --- SourceX/display.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/SourceX/display.cpp b/SourceX/display.cpp index 4ba1d9b0e..30ff3f78a 100644 --- a/SourceX/display.cpp +++ b/SourceX/display.cpp @@ -125,9 +125,9 @@ bool SpawnWindow(const char *lpWindowName) SDL_SetHint(SDL_HINT_TOUCH_MOUSE_EVENTS, "0"); #endif - int initFlags = SDL_INIT_EVERYTHING & ~SDL_INIT_HAPTIC; -#ifdef __3DS__ - initFlags = SDL_INIT_TIMER | SDL_INIT_VIDEO | SDL_INIT_JOYSTICK; + int initFlags = SDL_INIT_AUDIO | SDL_INIT_VIDEO | SDL_INIT_JOYSTICK; +#ifndef USE_SDL1 + initFlags |= SDL_INIT_GAMECONTROLLER; #endif if (SDL_Init(initFlags) <= -1) { ErrSdl();