diff options
author | rubidium42 <rubidium@openttd.org> | 2021-05-24 10:42:02 +0200 |
---|---|---|
committer | rubidium42 <rubidium42@users.noreply.github.com> | 2021-05-27 18:49:43 +0200 |
commit | 8372c679e3c16f776ecd0847b60c940ac066ed4c (patch) | |
tree | 97a9f45d0c38a83f97f770d8d6e6d14ec5009466 /src/settings_internal.h | |
parent | 86c9ef81345901afb015930fa0e3a637acbbc709 (diff) | |
download | openttd-8372c679e3c16f776ecd0847b60c940ac066ed4c.tar.xz |
Codechange: add helper functions to read an int setting value
Diffstat (limited to 'src/settings_internal.h')
-rw-r--r-- | src/settings_internal.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/settings_internal.h b/src/settings_internal.h index 0f6d0c3ad..e7dd6e914 100644 --- a/src/settings_internal.h +++ b/src/settings_internal.h @@ -156,6 +156,7 @@ struct IntSettingDesc : SettingDesc { void FormatValue(char *buf, const char *last, const void *object) const override; void ParseValue(const IniItem *item, void *object) const override; bool IsSameValue(const IniItem *item, void *object) const override; + int32 Read(const void *object) const; }; /** Boolean setting. */ |