MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / resetDefaults

Method resetDefaults

source/frontend/StarKeybindingsMenu.cpp:240–246  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

238}
239
240void KeybindingsMenu::resetDefaults() {
241 auto config = Root::singleton().configuration();
242 config->set("bindings", config->getDefault("bindings"));
243 apply();
244
245 buildListsFromConfig();
246}
247
248}

Callers

nothing calls this directly

Calls 4

singletonClass · 0.85
configurationMethod · 0.80
setMethod · 0.45
getDefaultMethod · 0.45

Tested by

no test coverage detected