From eef176c312c7e3f9144a82670f648955f04b525c Mon Sep 17 00:00:00 2001 From: Wolfgang Becker Date: Thu, 20 Apr 2006 18:05:43 +0000 Subject: [PATCH] No SDL_INIT_EVERYTHING so we don't block sound dev. SVN-Revision: 3378 --- src/main.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index 1ab47a716..8f4569e1c 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -268,7 +268,7 @@ static bool parse_commandline(int argc, char** argv) static void init_sdl() { - if(SDL_Init(SDL_INIT_EVERYTHING) < 0) { + if(SDL_Init(SDL_INIT_TIMER | SDL_INIT_VIDEO | SDL_INIT_JOYSTICK) < 0) { std::stringstream msg; msg << "Couldn't initialize SDL: " << SDL_GetError(); throw std::runtime_error(msg.str()); @@ -486,6 +486,9 @@ int main(int argc, char** argv) srand(time(0)); init_physfs(argv[0]); init_sdl(); + + log_fatal << "Test" << std::endl; + timelog("controller"); main_controller = new JoystickKeyboardController(); timelog("config"); -- 2.11.0