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

Function resetDefault

src/Engine/Options.cpp:276–288  ·  view source on GitHub ↗

* Resets the options back to their defaults. */

Source from the content-addressed store, hash-verified

274 * Resets the options back to their defaults.
275 */
276void resetDefault()
277{
278 for (std::vector<OptionInfo>::iterator i = _info.begin(); i != _info.end(); ++i)
279 {
280 i->reset();
281 }
282 backupDisplay();
283
284 rulesets.clear();
285 rulesets.push_back("Xcom1Ruleset");
286
287 purchaseExclusions.clear();
288}
289
290/**
291 * Loads options from a set of command line arguments,

Callers 2

initFunction · 0.85
btnYesClickMethod · 0.85

Calls 3

backupDisplayFunction · 0.85
resetMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected