From 0cc788b33dbd39ec82a0b14c59ed8020cf66b4db 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 3d39f78ba..ee1499e7a 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();