From 79e00dfcadbd0d670a3982f62f53dd74df83b562 Mon Sep 17 00:00:00 2001 From: Monwarez Date: Fri, 28 Oct 2016 17:33:38 +0200 Subject: [PATCH] Don't init force feedback if not used --- source/shared_lib/include/platform/sdl/platform_main.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/shared_lib/include/platform/sdl/platform_main.h b/source/shared_lib/include/platform/sdl/platform_main.h index 1b7ccc0f..f158e86f 100644 --- a/source/shared_lib/include/platform/sdl/platform_main.h +++ b/source/shared_lib/include/platform/sdl/platform_main.h @@ -667,7 +667,8 @@ int mainSetup(int argc, char **argv) { } else { if(SystemFlags::VERBOSE_MODE_ENABLED) printf("In [%s::%s Line: %d]\n",__FILE__,__FUNCTION__,__LINE__); - if(SDL_Init(SDL_INIT_EVERYTHING) < 0) { + if(SDL_Init(SDL_INIT_TIMER | SDL_INIT_AUDIO | SDL_INIT_VIDEO | SDL_INIT_JOYSTICK | \ + SDL_INIT_GAMECONTROLLER | SDL_INIT_EVENTS) < 0) { if(SystemFlags::VERBOSE_MODE_ENABLED) printf("In [%s::%s Line: %d]\n",__FILE__,__FUNCTION__,__LINE__); std::cerr << "Couldn't initialize SDL: " << SDL_GetError() << "\n"; return 3;