MCPcopy Create free account
hub / github.com/OpenXcom/OpenXcom / btnYesClick

Method btnYesClick

src/Menu/OptionsDefaultsState.cpp:103–113  ·  view source on GitHub ↗

* Restores the default options. * @param action Pointer to an action. */

Source from the content-addressed store, hash-verified

101 * @param action Pointer to an action.
102 */
103void OptionsDefaultsState::btnYesClick(Action *action)
104{
105 if (_origin == OPT_MENU && Options::rulesets.size() > 1)
106 {
107 Options::reload = true;
108 }
109 Options::resetDefault();
110 _game->defaultLanguage();
111 _game->popState();
112 _state->btnOkClick(action);
113}
114
115/**
116 * Closes the window.

Callers

nothing calls this directly

Calls 4

resetDefaultFunction · 0.85
defaultLanguageMethod · 0.80
popStateMethod · 0.45
btnOkClickMethod · 0.45

Tested by

no test coverage detected