Files @ r23774:59b54c2b48f6
Branch filter:

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

Niels Martin Hansen
Change: Limit in-editor warnings in VS 2019

The AllRules ruleset causes the VS 2019 editor to litter warning squiggles all over the place, about things that would never be fixed. Limit it to the smallest ruleset available. Warnings shown now mainly concern potential arithmetic overflows.
r17443:173f9abb35c4
r17443:173f9abb35c4
r17443:173f9abb35c4
r17443:173f9abb35c4
r17443:173f9abb35c4
r17443:173f9abb35c4
r17443:173f9abb35c4
r17443:173f9abb35c4
r17412:1ff79f20974f
r17412:1ff79f20974f
r17412:1ff79f20974f
r21421:7897be36f196
r21421:7897be36f196
r17412:1ff79f20974f
r17412:1ff79f20974f
r17412:1ff79f20974f
r17412:1ff79f20974f
r19716:f48509378d1e
r19716:f48509378d1e
r21421:7897be36f196
r19716:f48509378d1e
r19716:f48509378d1e
r19716:f48509378d1e
r17433:64e2236354f0
r17412:1ff79f20974f
r17430:f19b6938f22a
r17435:5574ebefe58a
r23678:26fe843cbb90
r17430:f19b6938f22a
r17430:f19b6938f22a
r19323:f9587a5e4cdc
r17446:7ac9e3a36ab8
r23610:c9cec3973b73
r23610:c9cec3973b73
r23264:b36243874b4a
r17432:2b9064a79edc
r19716:f48509378d1e
r17430:f19b6938f22a
r17430:f19b6938f22a
r17430:f19b6938f22a
r17412:1ff79f20974f
r17412:1ff79f20974f
r17412:1ff79f20974f
r17412:1ff79f20974f
r17894:3efa365a1d98
r17894:3efa365a1d98
r17412:1ff79f20974f
r17412:1ff79f20974f
r17412:1ff79f20974f
r17412:1ff79f20974f
r17412:1ff79f20974f
r19716:f48509378d1e
r17412:1ff79f20974f
r21421:7897be36f196
r21421:7897be36f196
r21421:7897be36f196
r21421:7897be36f196
r21421:7897be36f196
r21421:7897be36f196
r21421:7897be36f196
r21421:7897be36f196
r21421:7897be36f196
r17412:1ff79f20974f
r17412:1ff79f20974f
r17412:1ff79f20974f
r17412:1ff79f20974f
r23610:c9cec3973b73
r19716:f48509378d1e
r17412:1ff79f20974f
r17412:1ff79f20974f
r17412:1ff79f20974f
r17412:1ff79f20974f
r17412:1ff79f20974f
r23610:c9cec3973b73
r19716:f48509378d1e
r17412:1ff79f20974f
r17412:1ff79f20974f
r17412:1ff79f20974f
r17412:1ff79f20974f
r17412:1ff79f20974f
r23610:c9cec3973b73
r19716:f48509378d1e
r17412:1ff79f20974f
r17412:1ff79f20974f
r17412:1ff79f20974f
r17412:1ff79f20974f
r17412:1ff79f20974f
r23610:c9cec3973b73
r19716:f48509378d1e
r17412:1ff79f20974f
r17412:1ff79f20974f
r17412:1ff79f20974f
r17412:1ff79f20974f
r17412:1ff79f20974f
r23610:c9cec3973b73
r19716:f48509378d1e
r17412:1ff79f20974f
r17412:1ff79f20974f
r17412:1ff79f20974f
r17412:1ff79f20974f
r17412:1ff79f20974f
r23610:c9cec3973b73
r19716:f48509378d1e
r17412:1ff79f20974f
r17412:1ff79f20974f
r17412:1ff79f20974f
r17412:1ff79f20974f
r17412:1ff79f20974f
r23610:c9cec3973b73
r17412:1ff79f20974f
r17412:1ff79f20974f
r17412:1ff79f20974f
r17412:1ff79f20974f
r17412:1ff79f20974f
r23610:c9cec3973b73
r19716:f48509378d1e
r17412:1ff79f20974f
r17412:1ff79f20974f
r17433:64e2236354f0
r17412:1ff79f20974f
r17412:1ff79f20974f
r17412:1ff79f20974f
r17412:1ff79f20974f
r17412:1ff79f20974f
r19716:f48509378d1e
r17412:1ff79f20974f
r17412:1ff79f20974f
r17412:1ff79f20974f
r17412:1ff79f20974f
r17412:1ff79f20974f
r23610:c9cec3973b73
r19716:f48509378d1e
r17412:1ff79f20974f
r17412:1ff79f20974f
r17412:1ff79f20974f
r17412:1ff79f20974f
r17412:1ff79f20974f
r23610:c9cec3973b73
r19716:f48509378d1e
r17412:1ff79f20974f
r17412:1ff79f20974f
r17412:1ff79f20974f
r17412:1ff79f20974f
r17412:1ff79f20974f
r17412:1ff79f20974f
r17412:1ff79f20974f
r23735:275a836d8f5d
r17412:1ff79f20974f
r17412:1ff79f20974f
r20422:8dfeb5e16301
r23610:c9cec3973b73
r17412:1ff79f20974f
r17412:1ff79f20974f
r23735:275a836d8f5d
r17412:1ff79f20974f
r17412:1ff79f20974f
r20422:8dfeb5e16301
r23610:c9cec3973b73
r17412:1ff79f20974f
r17412:1ff79f20974f
r23735:275a836d8f5d
r17412:1ff79f20974f
r17412:1ff79f20974f
r20422:8dfeb5e16301
r23610:c9cec3973b73
r17412:1ff79f20974f
r18422:ab780a7de508
r23735:275a836d8f5d
r18422:ab780a7de508
r18422:ab780a7de508
r20422:8dfeb5e16301
r23610:c9cec3973b73
r18422:ab780a7de508
r17412:1ff79f20974f
r23735:275a836d8f5d
r17412:1ff79f20974f
r17412:1ff79f20974f
r20422:8dfeb5e16301
r20179:3d62e5438cc2
r17412:1ff79f20974f
r17412:1ff79f20974f
r17412:1ff79f20974f
r17412:1ff79f20974f
r23735:275a836d8f5d
r17412:1ff79f20974f
r17412:1ff79f20974f
r20422:8dfeb5e16301
r20179:3d62e5438cc2
r17412:1ff79f20974f
r17412:1ff79f20974f
r17412:1ff79f20974f
r17412:1ff79f20974f
r23735:275a836d8f5d
r17412:1ff79f20974f
r17412:1ff79f20974f
r20422:8dfeb5e16301
r20179:3d62e5438cc2
r17412:1ff79f20974f
r17412:1ff79f20974f
r17412:1ff79f20974f
r18422:ab780a7de508
r23735:275a836d8f5d
r18433:f0e5327f7aee
r18422:ab780a7de508
r20422:8dfeb5e16301
r20179:3d62e5438cc2
r18422:ab780a7de508
r18422:ab780a7de508
r18422:ab780a7de508
r17412:1ff79f20974f
r23735:275a836d8f5d
r17412:1ff79f20974f
r20422:8dfeb5e16301
r17412:1ff79f20974f
r17412:1ff79f20974f
r17412:1ff79f20974f
r23735:275a836d8f5d
r17412:1ff79f20974f
r20422:8dfeb5e16301
r17412:1ff79f20974f
r17412:1ff79f20974f
r17412:1ff79f20974f
r23735:275a836d8f5d
r17412:1ff79f20974f
r20422:8dfeb5e16301
r17412:1ff79f20974f
r17412:1ff79f20974f
r18422:ab780a7de508
r23735:275a836d8f5d
r18422:ab780a7de508
r20422:8dfeb5e16301
r18422:ab780a7de508
r18422:ab780a7de508
r17412:1ff79f20974f
r19341:f942294567d2
r17412:1ff79f20974f
r17412:1ff79f20974f
r19341:f942294567d2
r17412:1ff79f20974f
r18462:a1ba75a7f741
r19716:f48509378d1e
r17412:1ff79f20974f
r17412:1ff79f20974f
r17412:1ff79f20974f
r17412:1ff79f20974f
r17412:1ff79f20974f
r17412:1ff79f20974f
r17412:1ff79f20974f
r17412:1ff79f20974f
r19716:f48509378d1e
r17412:1ff79f20974f
r17412:1ff79f20974f
r17412:1ff79f20974f
r17412:1ff79f20974f
r17412:1ff79f20974f
r17412:1ff79f20974f
r17412:1ff79f20974f
r17412:1ff79f20974f
r19716:f48509378d1e
r17412:1ff79f20974f
r17412:1ff79f20974f
r17412:1ff79f20974f
r17412:1ff79f20974f
r17412:1ff79f20974f
r17412:1ff79f20974f
r17412:1ff79f20974f
r17412:1ff79f20974f
r19716:f48509378d1e
r17412:1ff79f20974f
r17412:1ff79f20974f
r17412:1ff79f20974f
r17412:1ff79f20974f
r17412:1ff79f20974f
r17412:1ff79f20974f
r17412:1ff79f20974f
r17412:1ff79f20974f
r19716:f48509378d1e
r17412:1ff79f20974f
r17412:1ff79f20974f
r17412:1ff79f20974f
r17412:1ff79f20974f
r17412:1ff79f20974f
r23610:c9cec3973b73
r19716:f48509378d1e
r17412:1ff79f20974f
r17412:1ff79f20974f
r17412:1ff79f20974f
r17412:1ff79f20974f
r17412:1ff79f20974f
r23610:c9cec3973b73
r19716:f48509378d1e
r17412:1ff79f20974f
r18377:0b64a9c73b75
r18377:0b64a9c73b75
r18377:0b64a9c73b75
r18377:0b64a9c73b75
r18377:0b64a9c73b75
r18377:0b64a9c73b75
r18377:0b64a9c73b75
r19716:f48509378d1e
r18377:0b64a9c73b75
r21838:669f90e1c828
r21838:669f90e1c828
r21838:669f90e1c828
r21838:669f90e1c828
r21838:669f90e1c828
r21838:669f90e1c828
r21838:669f90e1c828
r21838:669f90e1c828
r21838:669f90e1c828
r23348:6e5357399bcf
r23348:6e5357399bcf
r23348:6e5357399bcf
r23348:6e5357399bcf
r23348:6e5357399bcf
r23348:6e5357399bcf
r23348:6e5357399bcf
r23348:6e5357399bcf
r23348:6e5357399bcf
r17412:1ff79f20974f
r17412:1ff79f20974f
; $Id$
;
; 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/>.
;

[pre-amble]
extern char _config_language_file[MAX_PATH];

static const char *_support8bppmodes = "no|system|hardware";

static const SettingDescGlobVarList _misc_settings[] = {
[post-amble]
};
[templates]
SDTG_LIST  =  SDTG_LIST($name, $type, $length, $flags, $guiflags, $var, $def,                               $str, $strhelp, $strval, $proc, $from, $to, $cat),
SDTG_MMANY = SDTG_MMANY($name, $type,          $flags, $guiflags, $var, $def,                        $full, $str, $strhelp, $strval, $proc, $from, $to, $cat),
SDTG_OMANY = SDTG_OMANY($name, $type,          $flags, $guiflags, $var, $def,       $max,            $full, $str, $strhelp, $strval, $proc, $from, $to, $cat),
SDTG_STR   =   SDTG_STR($name, $type,          $flags, $guiflags, $var, $def,                               $str, $strhelp, $strval, $proc, $from, $to, $cat),
SDTG_BOOL  =  SDTG_BOOL($name,                 $flags, $guiflags, $var, $def,                               $str, $strhelp, $strval, $proc, $from, $to, $cat),
SDTG_VAR   =   SDTG_VAR($name, $type,          $flags, $guiflags, $var, $def, $min, $max, $interval,        $str, $strhelp, $strval, $proc, $from, $to, $cat),
SDTG_END   = SDTG_END()

[defaults]
flags    = SLF_NOT_IN_SAVE | SLF_NO_NETWORK_SYNC
guiflags = SGF_NONE
interval = 0
str      = STR_NULL
strhelp  = STR_CONFIG_SETTING_NO_EXPLANATION_AVAILABLE_HELPTEXT
strval   = STR_NULL
proc     = nullptr
load     = nullptr
from     = SL_MIN_VERSION
to       = SL_MAX_VERSION
cat      = SC_ADVANCED



[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     = ""SHOW_TOWN_NAMES|SHOW_STATION_NAMES|SHOW_SIGNS|FULL_ANIMATION||FULL_DETAIL|WAYPOINTS|SHOW_COMPETITOR_SIGNS""

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

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

[SDTG_STR]
name     = ""graphicsset""
type     = SLE_STRQ
var      = BaseGraphics::ini_set
def      = nullptr
cat      = SC_BASIC

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

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

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

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

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

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

[SDTG_STR]
name     = ""language""
type     = SLE_STRB
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      = ""640,480""
cat      = SC_BASIC

[SDTG_STR]
name     = ""screenshot_format""
type     = SLE_STRB
var      = _screenshot_format_name
def      = nullptr
cat      = SC_EXPERT

[SDTG_STR]
name     = ""savegame_format""
type     = SLE_STRB
var      = _savegame_format
def      = nullptr
cat      = SC_EXPERT

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

[SDTG_STR]
ifdef    = HAS_TRUETYPE_FONT
name     = ""small_font""
type     = SLE_STRB
var      = _freetype.small.font
def      = nullptr

[SDTG_STR]
ifdef    = HAS_TRUETYPE_FONT
name     = ""medium_font""
type     = SLE_STRB
var      = _freetype.medium.font
def      = nullptr

[SDTG_STR]
ifdef    = HAS_TRUETYPE_FONT
name     = ""large_font""
type     = SLE_STRB
var      = _freetype.large.font
def      = nullptr

[SDTG_STR]
ifdef    = HAS_TRUETYPE_FONT
name     = ""mono_font""
type     = SLE_STRB
var      = _freetype.mono.font
def      = nullptr

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

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

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

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

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

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

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

[SDTG_BOOL]
ifdef    = HAS_TRUETYPE_FONT
name     = ""mono_aa""
var      = _freetype.mono.aa
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_STR]
name     = ""keyboard""
type     = SLE_STRB
var      = _keyboard_opt[0]
def      = nullptr
cat      = SC_EXPERT

[SDTG_STR]
name     = ""keyboard_caps""
type     = SLE_STRB
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_zoom""
type     = SLE_UINT8
var      = _gui_zoom
def      = ZOOM_LVL_OUT_4X
min      = ZOOM_LVL_MIN
max      = ZOOM_LVL_OUT_4X
cat      = SC_BASIC

[SDTG_VAR]
name     = ""font_zoom""
type     = SLE_UINT8
var      = _font_zoom
def      = ZOOM_LVL_OUT_4X
min      = ZOOM_LVL_MIN
max      = ZOOM_LVL_OUT_4X
cat      = SC_BASIC

[SDTG_END]