Codechange: add a wrapper function to find all settings based on prefix (#9312)

This commit is contained in:
Patric Stout
2021-05-30 10:55:52 +02:00
committed by GitHub
parent e9e4588db1
commit 0c96884700
3 changed files with 19 additions and 23 deletions

View File

@@ -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);