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());
srand(time(0));
init_physfs(argv[0]);
init_sdl();
+
+ log_fatal << "Test" << std::endl;
+
timelog("controller");
main_controller = new JoystickKeyboardController();
timelog("config");