Files @ r28566:ec28e66fe6ee
Branch filter:

Location: cpp/openttd-patchpack/source/src/table/settings/misc_settings.ini

dependabot[bot] 49699333+dependabot[bot]@users.noreply.github.com
Upgrade: [CI] bump the actions group with 9 updates (#11881)

Bumps the actions group with 9 updates:

| Package | From | To |
| --- | --- | --- |
| [actions/checkout](https://github.com/actions/checkout) | `3` | `4` |
| [actions/cache](https://github.com/actions/cache) | `3` | `4` |
| [actions/github-script](https://github.com/actions/github-script) | `6` | `7` |
| [OpenTTD/actions](https://github.com/openttd/actions) | `2` | `5` |
| [github/codeql-action](https://github.com/github/codeql-action) | `2` | `3` |
| [actions/download-artifact](https://github.com/actions/download-artifact) | `3` | `4` |
| [actions/upload-artifact](https://github.com/actions/upload-artifact) | `3` | `4` |
| [tibdex/github-app-token](https://github.com/tibdex/github-app-token) | `1` | `2` |
| [peter-evans/repository-dispatch](https://github.com/peter-evans/repository-dispatch) | `2` | `3` |

Updates `actions/checkout` from 3 to 4
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v3...v4)

Updates `actions/cache` from 3 to 4
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](https://github.com/actions/cache/compare/v3...v4)

Updates `actions/github-script` from 6 to 7
- [Release notes](https://github.com/actions/github-script/releases)
- [Commits](https://github.com/actions/github-script/compare/v6...v7)

Updates `OpenTTD/actions` from 2 to 5
- [Release notes](https://github.com/openttd/actions/releases)
- [Commits](https://github.com/openttd/actions/compare/v2...v5)

Updates `github/codeql-action` from 2 to 3
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/v2...v3)

Updates `actions/download-artifact` from 3 to 4
- [Release notes](https://github.com/actions/download-artifact/releases)
- [Commits](https://github.com/actions/download-artifact/compare/v3...v4)

Updates `actions/upload-artifact` from 3 to 4
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/v3...v4)

Updates `tibdex/github-app-token` from 1 to 2
- [Release notes](https://github.com/tibdex/github-app-token/releases)
- [Commits](https://github.com/tibdex/github-app-token/compare/v1...v2)

Updates `peter-evans/repository-dispatch` from 2 to 3
- [Release notes](https://github.com/peter-evans/repository-dispatch/releases)
- [Commits](https://github.com/peter-evans/repository-dispatch/compare/v2...v3)

---
updated-dependencies:
- dependency-name: actions/checkout
dependency-type: direct:production
update-type: version-update:semver-major
dependency-group: actions
- dependency-name: actions/cache
dependency-type: direct:production
update-type: version-update:semver-major
dependency-group: actions
- dependency-name: actions/github-script
dependency-type: direct:production
update-type: version-update:semver-major
dependency-group: actions
- dependency-name: OpenTTD/actions
dependency-type: direct:production
update-type: version-update:semver-major
dependency-group: actions
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-major
dependency-group: actions
- dependency-name: actions/download-artifact
dependency-type: direct:production
update-type: version-update:semver-major
dependency-group: actions
- dependency-name: actions/upload-artifact
dependency-type: direct:production
update-type: version-update:semver-major
dependency-group: actions
- dependency-name: tibdex/github-app-token
dependency-type: direct:production
update-type: version-update:semver-major
dependency-group: actions
- dependency-name: peter-evans/repository-dispatch
dependency-type: direct:production
update-type: version-update:semver-major
dependency-group: actions
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
; This file is part of OpenTTD.
; OpenTTD is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2.
; OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
; See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenTTD. If not, see <http://www.gnu.org/licenses/>.
;

; Various of settings that are stored in global variables. They are all
; located under "misc" in the configuration files.

[pre-amble]
extern std::string _config_language_file;

static constexpr std::initializer_list<const char*> _support8bppmodes{"no", "system", "hardware"};
static constexpr std::initializer_list<const char*> _display_opt_modes{"SHOW_TOWN_NAMES", "SHOW_STATION_NAMES", "SHOW_SIGNS", "FULL_ANIMATION", "", "FULL_DETAIL", "WAYPOINTS", "SHOW_COMPETITOR_SIGNS"};

#ifdef WITH_COCOA
extern bool _allow_hidpi_window;
#endif
#ifndef WITH_COCOA
#define WITHOUT_COCOA
#endif

static const SettingVariant _misc_settings_table[] = {
[post-amble]
};
[templates]
SDTG_LIST  =  SDTG_LIST($name, $type, $flags, $var, $def,       $length,                                                            $from, $to, $cat, $extra, $startup),
SDTG_MMANY = SDTG_MMANY($name, $type, $flags, $var, $def,                        $full, $str, $strhelp, $strval, $pre_cb, $post_cb, $from, $to, $cat, $extra, $startup),
SDTG_OMANY = SDTG_OMANY($name, $type, $flags, $var, $def,       $max,            $full, $str, $strhelp, $strval, $pre_cb, $post_cb, $from, $to, $cat, $extra, $startup),
SDTG_SSTR  =  SDTG_SSTR($name, $type, $flags, $var, $def,       0,                                               $pre_cb, $post_cb, $from, $to, $cat, $extra, $startup),
SDTG_BOOL  =  SDTG_BOOL($name,        $flags, $var, $def,                               $str, $strhelp, $strval, $pre_cb, $post_cb, $from, $to, $cat, $extra, $startup),
SDTG_VAR   =   SDTG_VAR($name, $type, $flags, $var, $def, $min, $max, $interval,        $str, $strhelp, $strval, $pre_cb, $post_cb, $from, $to, $cat, $extra, $startup),

[validation]
SDTG_VAR = static_assert($max <= MAX_$type, "Maximum value for $var exceeds storage size");
SDTG_OMANY = static_assert($max <= MAX_$type, "Maximum value for $var exceeds storage size");

[defaults]
flags    = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC
interval = 0
str      = STR_NULL
strhelp  = STR_CONFIG_SETTING_NO_EXPLANATION_AVAILABLE_HELPTEXT
strval   = STR_NULL
pre_cb   = nullptr
post_cb  = nullptr
load     = nullptr
from     = SL_MIN_VERSION
to       = SL_MAX_VERSION
cat      = SC_ADVANCED
extra    = 0
startup  = true



[SDTG_MMANY]
name     = ""display_opt""
type     = SLE_UINT8
var      = _display_opt
def      = (1 << DO_SHOW_TOWN_NAMES | 1 << DO_SHOW_STATION_NAMES | 1 << DO_SHOW_SIGNS | 1 << DO_FULL_ANIMATION | 1 << DO_FULL_DETAIL | 1 << DO_SHOW_WAYPOINT_NAMES | 1 << DO_SHOW_COMPETITOR_SIGNS)
full     = _display_opt_modes

[SDTG_BOOL]
name     = ""fullscreen""
var      = _fullscreen
def      = false
cat      = SC_BASIC

[SDTG_BOOL]
ifdef    = WITH_COCOA
name     = ""video_hw_accel""
var      = _video_hw_accel
def      = false
cat      = SC_BASIC

[SDTG_BOOL]
ifdef    = WITHOUT_COCOA
name     = ""video_hw_accel""
var      = _video_hw_accel
def      = true
cat      = SC_BASIC

[SDTG_BOOL]
name     = ""video_vsync""
var      = _video_vsync
def      = false
cat      = SC_BASIC

[SDTG_OMANY]
name     = ""support8bpp""
type     = SLE_UINT8
var      = _support8bpp
def      = 0
max      = 2
full     = _support8bppmodes
cat      = SC_BASIC

[SDTG_SSTR]
name     = ""soundsset""
type     = SLE_STRQ
var      = BaseSounds::ini_set
def      = nullptr
cat      = SC_BASIC

[SDTG_SSTR]
name     = ""musicset""
type     = SLE_STRQ
var      = BaseMusic::ini_set
def      = nullptr
cat      = SC_BASIC

[SDTG_SSTR]
name     = ""videodriver""
type     = SLE_STRQ
var      = _ini_videodriver
def      = nullptr
cat      = SC_EXPERT

[SDTG_SSTR]
name     = ""musicdriver""
type     = SLE_STRQ
var      = _ini_musicdriver
def      = nullptr
cat      = SC_EXPERT

[SDTG_SSTR]
name     = ""sounddriver""
type     = SLE_STRQ
var      = _ini_sounddriver
def      = nullptr
cat      = SC_EXPERT

[SDTG_SSTR]
name     = ""blitter""
type     = SLE_STRQ
var      = _ini_blitter
def      = nullptr

[SDTG_SSTR]
name     = ""language""
type     = SLE_STR
var      = _config_language_file
def      = nullptr
cat      = SC_BASIC

; workaround for implicit lengthof() in SDTG_LIST
[SDTG_LIST]
name     = ""resolution""
type     = SLE_INT
length   = 2
var      = _cur_resolution
def      = ""0,0""
cat      = SC_BASIC

[SDTG_SSTR]
name     = ""screenshot_format""
type     = SLE_STR
var      = _screenshot_format_name
def      = nullptr
cat      = SC_EXPERT

[SDTG_SSTR]
name     = ""savegame_format""
type     = SLE_STR
var      = _savegame_format
def      = nullptr
cat      = SC_EXPERT

[SDTG_BOOL]
name     = ""rightclick_emulate""
var      = _rightclick_emulate
def      = false

[SDTG_SSTR]
ifdef    = HAS_TRUETYPE_FONT
name     = ""small_font""
type     = SLE_STR
var      = _fcsettings.small.font
def      = nullptr

[SDTG_SSTR]
ifdef    = HAS_TRUETYPE_FONT
name     = ""medium_font""
type     = SLE_STR
var      = _fcsettings.medium.font
def      = nullptr

[SDTG_SSTR]
ifdef    = HAS_TRUETYPE_FONT
name     = ""large_font""
type     = SLE_STR
var      = _fcsettings.large.font
def      = nullptr

[SDTG_SSTR]
ifdef    = HAS_TRUETYPE_FONT
name     = ""mono_font""
type     = SLE_STR
var      = _fcsettings.mono.font
def      = nullptr

[SDTG_VAR]
ifdef    = HAS_TRUETYPE_FONT
name     = ""small_size""
type     = SLE_UINT
var      = _fcsettings.small.size
def      = 0
min      = 0
max      = 72

[SDTG_VAR]
ifdef    = HAS_TRUETYPE_FONT
name     = ""medium_size""
type     = SLE_UINT
var      = _fcsettings.medium.size
def      = 0
min      = 0
max      = 72

[SDTG_VAR]
ifdef    = HAS_TRUETYPE_FONT
name     = ""large_size""
type     = SLE_UINT
var      = _fcsettings.large.size
def      = 0
min      = 0
max      = 72

[SDTG_VAR]
ifdef    = HAS_TRUETYPE_FONT
name     = ""mono_size""
type     = SLE_UINT
var      = _fcsettings.mono.size
def      = 0
min      = 0
max      = 72

[SDTG_BOOL]
ifdef    = HAS_TRUETYPE_FONT
name     = ""small_aa""
var      = _fcsettings.small.aa
def      = false

[SDTG_BOOL]
ifdef    = HAS_TRUETYPE_FONT
name     = ""medium_aa""
var      = _fcsettings.medium.aa
def      = false

[SDTG_BOOL]
ifdef    = HAS_TRUETYPE_FONT
name     = ""large_aa""
var      = _fcsettings.large.aa
def      = false

[SDTG_BOOL]
ifdef    = HAS_TRUETYPE_FONT
name     = ""mono_aa""
var      = _fcsettings.mono.aa
def      = false

[SDTG_BOOL]
ifdef    = HAS_TRUETYPE_FONT
name     = ""global_aa""
var      = _fcsettings.global_aa
def      = true

[SDTG_BOOL]
ifdef    = HAS_TRUETYPE_FONT
name     = ""prefer_sprite_font""
var      = _fcsettings.prefer_sprite
def      = false

[SDTG_VAR]
name     = ""sprite_cache_size_px""
type     = SLE_UINT
var      = _sprite_cache_size
def      = 128
min      = 1
max      = 512
cat      = SC_EXPERT

[SDTG_VAR]
name     = ""player_face""
type     = SLE_UINT32
var      = _company_manager_face
def      = 0
min      = 0
max      = 0xFFFFFFFF
cat      = SC_BASIC

[SDTG_VAR]
name     = ""transparency_options""
type     = SLE_UINT
var      = _transparency_opt
def      = 0
min      = 0
max      = 0x1FF
cat      = SC_BASIC

[SDTG_VAR]
name     = ""transparency_locks""
type     = SLE_UINT
var      = _transparency_lock
def      = 0
min      = 0
max      = 0x1FF
cat      = SC_BASIC

[SDTG_VAR]
name     = ""invisibility_options""
type     = SLE_UINT
var      = _invisibility_opt
def      = 0
min      = 0
max      = 0xFF
cat      = SC_BASIC

[SDTG_SSTR]
name     = ""keyboard""
type     = SLE_STR
var      = _keyboard_opt[0]
def      = nullptr
cat      = SC_EXPERT

[SDTG_SSTR]
name     = ""keyboard_caps""
type     = SLE_STR
var      = _keyboard_opt[1]
def      = nullptr
cat      = SC_EXPERT

[SDTG_VAR]
name     = ""last_newgrf_count""
type     = SLE_UINT32
var      = _settings_client.gui.last_newgrf_count
def      = 100
min      = 0
max      = UINT32_MAX
cat      = SC_EXPERT

[SDTG_VAR]
name     = ""gui_scale""
type     = SLE_INT32
var      = _gui_scale_cfg
def      = -1
min      = -1
max      = MAX_INTERFACE_SCALE
cat      = SC_BASIC

[SDTG_BOOL]
ifdef    = WITH_COCOA
name     = ""allow_hidpi""
var      = _allow_hidpi_window
def      = true