summaryrefslogtreecommitdiff
path: root/src/settings_internal.h
diff options
context:
space:
mode:
authorPatric Stout <truebrain@openttd.org>2021-05-30 10:55:52 +0200
committerGitHub <noreply@github.com>2021-05-30 10:55:52 +0200
commit0c968847006ba7206265651ac45f8fa0ce6141ac (patch)
tree71159110d86179955fc747dbece3ef91f50b37a6 /src/settings_internal.h
parente9e4588db105f5827c5356933023f6ce698fe6aa (diff)
downloadopenttd-0c968847006ba7206265651ac45f8fa0ce6141ac.tar.xz
Codechange: add a wrapper function to find all settings based on prefix (#9312)
Diffstat (limited to 'src/settings_internal.h')
-rw-r--r--src/settings_internal.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/settings_internal.h b/src/settings_internal.h
index ba5331288..632d4081d 100644
--- a/src/settings_internal.h
+++ b/src/settings_internal.h
@@ -300,6 +300,7 @@ struct NullSettingDesc : SettingDesc {
typedef std::initializer_list<std::unique_ptr<const SettingDesc>> SettingTable;
const SettingDesc *GetSettingFromName(const char *name);
+void GetSettingSaveLoadByPrefix(const char *prefix, std::vector<SaveLoad> &saveloads);
bool SetSettingValue(const IntSettingDesc *sd, int32 value, bool force_newgame = false);
bool SetSettingValue(const StringSettingDesc *sd, const std::string value, bool force_newgame = false);