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

Method restore_settings

plugins/spectate.cpp:137–143  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

135 }
136
137 void restore_settings(color_ostream &out) {
138 if (!saved || was_in_settings)
139 return;
140 DEBUG(control,out).print("restoring saved announcement settings\n");
141 for (size_t i = 0; i < announcement_flag_arr_size; ++i)
142 d_init->announcements.flags[i].whole = (*saved)[i];
143 }
144
145 // remove pausing, popups, and recentering from all announcements
146 // saves first so the original settings can be restored

Callers 1

spectate_setSettingFunction · 0.80

Calls 1

printMethod · 0.45

Tested by

no test coverage detected