g_config.reset(new Config);
try {
g_config->load();
- }
- catch(const std::exception& e)
+ }
+ catch(const std::exception& e)
{
log_info << "Couldn't load config file: " << e.what() << ", using default settings" << std::endl;
}
{
g_config->save();
}
- g_config.reset();
+ g_config.reset();
}
};
ConsoleBuffer console_buffer;
timelog("controller");
- InputManager input_manager;
+ InputManager input_manager(g_config->keyboard_config);
timelog("commandline");