MCPcopy Create free account
hub / github.com/DFHack/dfhack / reset

Method reset

plugins/spectate.cpp:110–119  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

108
109public:
110 void reset(color_ostream &out, bool skip_restore) {
111 was_in_settings = false;
112
113 if (saved) {
114 if (!skip_restore)
115 restore_settings(out);
116 delete[] *saved;
117 saved.reset();
118 }
119 }
120
121 void on_update(color_ostream &out) {
122 if (Gui::matchFocusString("dwarfmode/Settings")) {

Callers

nothing calls this directly

Calls 1

resetMethod · 0.45

Tested by

no test coverage detected