From: Wolfgang Becker Date: Thu, 20 Apr 2006 18:05:43 +0000 (+0000) Subject: No SDL_INIT_EVERYTHING so we don't block sound dev. X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=eef176c312c7e3f9144a82670f648955f04b525c;p=supertux.git No SDL_INIT_EVERYTHING so we don't block sound dev. SVN-Revision: 3378 --- 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");