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

Method init

src/Menu/ListGamesState.cpp:184–203  ·  view source on GitHub ↗

* Refreshes the saves list. */

Source from the content-addressed store, hash-verified

182 * Refreshes the saves list.
183 */
184void ListGamesState::init()
185{
186 State::init();
187
188 if (_origin == OPT_BATTLESCAPE)
189 {
190 applyBattlescapeTheme();
191 }
192
193 try
194 {
195 _saves = SavedGame::getList(_game->getLanguage(), _autoquick);
196 _lstSaves->clearList();
197 sortList(Options::saveOrder);
198 }
199 catch (Exception &e)
200 {
201 Log(LOG_ERROR) << e.what();
202 }
203}
204
205/**
206 * Updates the sorting arrows based

Callers

nothing calls this directly

Calls 4

initFunction · 0.85
getLanguageMethod · 0.80
clearListMethod · 0.80
whatMethod · 0.80

Tested by

no test coverage detected