* Callback function for the reset all settings button * @param w Window which is calling this callback * @param confirmed boolean value, true when yes was clicked, false otherwise */
| 384 | * @param confirmed boolean value, true when yes was clicked, false otherwise |
| 385 | */ |
| 386 | static void ResetAllSettingsConfirmationCallback(Window *w, bool confirmed) |
| 387 | { |
| 388 | if (confirmed) { |
| 389 | GetSettingsTree().ResetAll(); |
| 390 | GetSettingsTree().FoldAll(); |
| 391 | w->InvalidateData(); |
| 392 | } |
| 393 | } |
| 394 | |
| 395 | struct GameOptionsWindow : Window { |
| 396 | static inline GameSettings *settings_ptr; ///< Pointer to the game settings being displayed and modified. |
nothing calls this directly
no test coverage detected