MCPcopy Create free account
hub / github.com/OpenMC2/OpenMC2 / tree_set_settings

Method tree_set_settings

src/Settings.cpp:121–133  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

119}
120
121void 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
136bool Settings::load_settings() {

Callers 1

save_configFunction · 0.80

Calls 1

get_language_stringFunction · 0.85

Tested by

no test coverage detected