From c66bd18a1087d4b34d79faf68afb9ff8fea89be4 Mon Sep 17 00:00:00 2001 From: Patric Stout Date: Sun, 13 Dec 2020 16:28:06 +0100 Subject: Add: save openttd.cfg immediately on changing a setting (#8358) Formally it was only done on exit. This means that if it crashes changes in settings were not stored. This is often rather frustrating. Additionally, targets (like emscripten) where people are unlike to use "Exit Game", will never see their configuration stored. The drawback is that on every setting change there is some minor I/O of writing the ini file to disk again. --- src/openttd.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/openttd.h') diff --git a/src/openttd.h b/src/openttd.h index 664963a5d..61cff2456 100644 --- a/src/openttd.h +++ b/src/openttd.h @@ -51,6 +51,7 @@ enum DisplayOptions { extern GameMode _game_mode; extern SwitchMode _switch_mode; extern bool _exit_game; +extern bool _save_config; /** Modes of pausing we've got */ enum PauseMode : byte { -- cgit v1.2.3-54-g00ecf