Reverted part of revision 02c347cdae86.
authorLMH <lmh.0013@gmail.com>
Thu, 29 Aug 2013 19:39:24 +0000 (09:39 -1000)
committerTobias Markus <tobbi@mozilla-uk.org>
Sat, 26 Oct 2013 16:45:19 +0000 (18:45 +0200)
Loading config before controller was causing controller settings to be lost and default keybindings/joystick mapping to be adopted.  This change reverts that part of the component loading re-order.

src/supertux/main.cpp

index 80373b3..07a3da3 100644 (file)
@@ -627,6 +627,9 @@ Main::run(int argc, char** argv)
     init_sdl();
     Console::instance = new Console();
 
+    timelog("controller");
+    g_jk_controller = new JoystickKeyboardController();
+
     timelog("config");
     init_config();
 
@@ -644,9 +647,6 @@ Main::run(int argc, char** argv)
     
     timelog("tinygettext");
     init_tinygettext();
-    
-    timelog("controller");
-    g_jk_controller = new JoystickKeyboardController();
 
     Console::instance->init_graphics();