diff options
author | Patric Stout <truebrain@openttd.org> | 2021-07-09 21:16:03 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-09 21:16:03 +0200 |
commit | 8f5d0ecde39cbaf2ac1a6d27e82239bfc3bf1515 (patch) | |
tree | 232daba5b6f77f8ae33191c0b88dd21ef662a1c1 /src/settings_table.cpp | |
parent | d9ca9ca55571829af88429147e20bf0734e07e2d (diff) | |
download | openttd-8f5d0ecde39cbaf2ac1a6d27e82239bfc3bf1515.tar.xz |
Codechange: split settings.ini over several files (#9421)
This reduced the load on compilers, as currently for example MacOS
doesn't like the huge settings-tables.
Additionally, nobody can find settings, as the list is massive and
unordered. By splitting it, it becomes a little bit more sensible.
Diffstat (limited to 'src/settings_table.cpp')
-rw-r--r-- | src/settings_table.cpp | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/src/settings_table.cpp b/src/settings_table.cpp index bc1e588cd..045d8e56c 100644 --- a/src/settings_table.cpp +++ b/src/settings_table.cpp @@ -49,16 +49,25 @@ #include "safeguards.h" -SettingTable _settings{ _settings_table }; -SettingTable _network_settings{ _network_settings_table }; -SettingTable _network_private_settings{ _network_private_settings_table }; -SettingTable _network_secrets_settings{ _network_secrets_settings_table }; - SettingTable _company_settings{ _company_settings_table }; SettingTable _currency_settings{ _currency_settings_table }; -SettingTable _gameopt_settings{ _gameopt_settings_table }; +SettingTable _difficulty_settings{ _difficulty_settings_table }; +SettingTable _multimedia_settings{ _multimedia_settings_table }; +SettingTable _economy_settings{ _economy_settings_table }; +SettingTable _game_settings{ _game_settings_table }; +SettingTable _gui_settings{ _gui_settings_table }; +SettingTable _linkgraph_settings{ _linkgraph_settings_table }; +SettingTable _locale_settings{ _locale_settings_table }; SettingTable _misc_settings{ _misc_settings_table }; +SettingTable _network_private_settings{ _network_private_settings_table }; +SettingTable _network_secrets_settings{ _network_secrets_settings_table }; +SettingTable _network_settings{ _network_settings_table }; +SettingTable _news_display_settings{ _news_display_settings_table }; +SettingTable _old_gameopt_settings{ _old_gameopt_settings_table }; +SettingTable _pathfinding_settings{ _pathfinding_settings_table }; +SettingTable _script_settings{ _script_settings_table }; SettingTable _window_settings{ _window_settings_table }; +SettingTable _world_settings{ _world_settings_table }; #if defined(_WIN32) && !defined(DEDICATED) SettingTable _win32_settings{ _win32_settings_table }; #endif /* _WIN32 */ |