* Refreshes the saves list. */
| 182 | * Refreshes the saves list. |
| 183 | */ |
| 184 | void 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 |
nothing calls this directly
no test coverage detected