| 119 | } |
| 120 | |
| 121 | void Settings::tree_set_settings(config_tree &tree) { |
| 122 | tree.put<std::string>("audio_driver", this->audio_driver); |
| 123 | tree.put<int>("screen_width", this->screen_width); |
| 124 | tree.put<int>("screen_height", this->screen_height); |
| 125 | tree.put<int>("screen_depth", this->screen_depth); |
| 126 | tree.put<int>("draw_distance", this->draw_distance); |
| 127 | tree.put<bool>("environment_mapping", this->environment_mapping); |
| 128 | tree.put<bool>("reflections", this->reflections); |
| 129 | tree.put<bool>("shadows", this->shadows); |
| 130 | tree.put<bool>("fullscreen_effects", this->fullscreen_effects); |
| 131 | tree.put<input_t>("input_device", this->input_device, config_tree_input_translator); |
| 132 | tree.put<std::string>("language", get_language_string(this->language_id)); |
| 133 | } |
| 134 | |
| 135 | //mc2: 0x0053B6A0 |
| 136 | bool Settings::load_settings() { |
no test coverage detected